bbf501269d
- Move env-specific config into environments/<env>/{values,configmap,secret}.yaml
for both nginx-chart and mysql-chart (dev, stg, prod)
- Make templates env-agnostic: resource names come from values
(configMap.name, secret.name)
- nginx deployment mounts env ConfigMap and loads env Secret via envFrom
- mysql statefulset reads DB config from ConfigMap, passwords from Secret
- Remove mysql-chart/templates/secret.yaml (secrets are now per-env manifests)
- Add README with layout and deploy commands
13 lines
354 B
YAML
13 lines
354 B
YAML
# MySQL credentials for the PROD environment (referenced by the StatefulSet).
|
|
# Replace with real values; for production use a sealed/encrypted secret instead
|
|
# of committing plaintext.
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: mysql-secret-prod
|
|
namespace: prod
|
|
type: Opaque
|
|
stringData:
|
|
MYSQL_PASSWORD: prod123
|
|
MYSQL_ROOT_PASSWORD: prodroot123
|