From b9c513a5110ce4651ea3f0491918a6a6882f2e77 Mon Sep 17 00:00:00 2001 From: abidknashtech <127501072+abidknashtech@users.noreply.github.com> Date: Wed, 15 Nov 2023 14:24:57 +0530 Subject: [PATCH] Update gcp-deploy-service.yaml --- inventory-service/gcp-deploy-service.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/inventory-service/gcp-deploy-service.yaml b/inventory-service/gcp-deploy-service.yaml index af624790..313a71e4 100644 --- a/inventory-service/gcp-deploy-service.yaml +++ b/inventory-service/gcp-deploy-service.yaml @@ -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 @@ -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: @@ -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: