# This is an example WordPress instance created from the WordPress template.
# 
# IMPORTANT NOTE ABOUT SECRETS:
# We follow a standardized pattern for all ContainerMomDeployments:
#   1. One secret per deployment (named 'wordpress-secret')
#   2. All sensitive values are stored in this single secret
#   3. Both WordPress and MariaDB deployments reference this shared secret
#
# This approach provides a consistent pattern across all deployments
# and ensures that environment variables correctly reference the secret.
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" 