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 583e7e2 commit 3f00b85
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions inventory-service/gcp-deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ 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 @@ -26,9 +22,6 @@ spec:
- name: http
containerPort: 9091
protocol: TCP
volumeMounts:
- name: google-cloud-key
mountPath: /var/secrets/google
env:
- name: MYSQL_DB_USERNAME
valueFrom:
Expand All @@ -43,11 +36,10 @@ spec:
key: mysql-db-userpassword
optional: false
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
valueFrom:
secretKeyRef:
name: secret-to-be-created
key: gcp-json-key
name: google-application-credentials
key: application-credentials.json
optional: false
envFrom:
- configMapRef:
Expand Down

0 comments on commit 3f00b85

Please sign in to comment.