Skip to content

Commit

Permalink
Update gcp-deploy-service.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
abidknashtech authored Nov 15, 2023
1 parent be956c2 commit b9c513a
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions inventory-service/gcp-deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ spec:
labels:
app: inventoryservice
spec:
volumes:
- name: google-cloud-key
secret:
secretName: pubsub-key
containers:
- name: inventoryservice
image: gcr.io/PROJECT_ID/IMAGE:TAG
Expand All @@ -23,12 +27,8 @@ spec:
containerPort: 9091
protocol: TCP
volumeMounts:
- name: google-cloud-key
mountPath: /var/secrets/google
volumes:
- name: google-cloud-key
secret:
secretName: pubsub-key
- name: google-cloud-key
mountPath: /var/secrets/google
env:
- name: MYSQL_DB_USERNAME
valueFrom:
Expand Down Expand Up @@ -102,6 +102,11 @@ spec:
key: car-demo-secret
version: latest
property: mysql-db-userpassword
- secretKey: "gcp-json-key"
remoteRef:
key: car-demo-secret
version: latest
property: gcp-json-key

- secretKey: "MY_SQL_SECRETS"
remoteRef:
Expand Down

0 comments on commit b9c513a

Please sign in to comment.