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 684709b commit 583e7e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 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: gcp-json-key
containers:
- name: inventoryservice
image: gcr.io/PROJECT_ID/IMAGE:TAG
Expand All @@ -22,6 +26,9 @@ spec:
- name: http
containerPort: 9091
protocol: TCP
volumeMounts:
- name: google-cloud-key
mountPath: /var/secrets/google
env:
- name: MYSQL_DB_USERNAME
valueFrom:
Expand All @@ -36,6 +43,7 @@ spec:
key: mysql-db-userpassword
optional: false
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
valueFrom:
secretKeyRef:
name: secret-to-be-created
Expand Down

0 comments on commit 583e7e2

Please sign in to comment.