Skip to content

Commit

Permalink
Update mysql-deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
SubbuTechTutorials authored Oct 23, 2024
1 parent 3da4f6e commit 77540aa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions k8s/mysql-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mysql-db-preprod
namespace: pre-prod
name: mysql-db-prod
namespace: prod
spec:
replicas: 1
selector:
Expand All @@ -22,22 +22,22 @@ spec:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: db-secrets-preprod
name: db-secrets-prod
key: MYSQL_USER
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: db-secrets-preprod
name: db-secrets-prod
key: MYSQL_PASSWORD
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: db-secrets-preprod
name: db-secrets-prod
key: MYSQL_ROOT_PASSWORD
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
name: db-secrets-preprod
name: db-secrets-prod
key: MYSQL_DATABASE # Updated to use the secret key instead of ConfigMap
volumeMounts:
- mountPath: /var/lib/mysql
Expand All @@ -46,4 +46,4 @@ spec:
volumes:
- name: mysql-persistent-storage
persistentVolumeClaim:
claimName: mysql-pvc-preprod # Must match your PersistentVolumeClaim
claimName: mysql-pvc-prod # Must match your PersistentVolumeClaim

0 comments on commit 77540aa

Please sign in to comment.