Skip to content

Commit

Permalink
Update petclinic-deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
SubbuTechTutorials authored Oct 23, 2024
1 parent a3ca270 commit ca08750
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions k8s/petclinic-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: petclinic-app-preprod
namespace: pre-prod
name: petclinic-app-prod
namespace: prod
spec:
replicas: 2
selector:
Expand All @@ -25,20 +25,20 @@ spec:
- name: MYSQL_URL
valueFrom:
configMapKeyRef:
name: app-config-preprod
name: app-config-prod
key: MYSQL_URL
- 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_DATABASE
valueFrom:
secretKeyRef:
name: db-secrets-preprod
name: db-secrets-prod
key: MYSQL_DATABASE # Updated to use the secret key instead of ConfigMap

0 comments on commit ca08750

Please sign in to comment.