# This is an example WordPress instance created from the WordPress template. # # IMPORTANT NOTE ABOUT SECRETS: # In the template, we define secret components with fixed names: # - name: wordpress-credentials # - name: mariadb-credentials # # These component names become the actual secret names in Kubernetes. # The operator uses these exact names when creating the secrets, # and the environment variables reference these exact secret names. # # This approach ensures that secret references in environment variables # will correctly match the actual secrets created by the operator. apiVersion: container.mom/v1alpha1 kind: TemplateInstance metadata: name: my-wordpress-site namespace: default spec: templateRef: name: wordpress namespace: container-mom-system parameters: SITE_NAME: "My WordPress Blog" ADMIN_EMAIL: "admin@example.com" ADMIN_PASSWORD: "secure-admin-password" MYSQL_ROOT_PASSWORD: "secure-root-password" MYSQL_DATABASE: "wordpress" MYSQL_USER: "wordpress" MYSQL_PASSWORD: "secure-db-password" DOMAIN_NAME: "wordpress.example.com"