From be956c27032578f30db8059eafcc5d9d9510f70a Mon Sep 17 00:00:00 2001 From: abidknashtech <127501072+abidknashtech@users.noreply.github.com> Date: Wed, 15 Nov 2023 14:16:16 +0530 Subject: [PATCH] Update gcp-deploy-service.yaml --- inventory-service/gcp-deploy-service.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/inventory-service/gcp-deploy-service.yaml b/inventory-service/gcp-deploy-service.yaml index ed4b8d77..af624790 100644 --- a/inventory-service/gcp-deploy-service.yaml +++ b/inventory-service/gcp-deploy-service.yaml @@ -22,6 +22,13 @@ spec: - name: http containerPort: 9091 protocol: TCP + volumeMounts: + - name: google-cloud-key + mountPath: /var/secrets/google + volumes: + - name: google-cloud-key + secret: + secretName: pubsub-key env: - name: MYSQL_DB_USERNAME valueFrom: @@ -36,11 +43,7 @@ spec: key: mysql-db-userpassword optional: false - name: GOOGLE_APPLICATION_CREDENTIALS - valueFrom: - secretKeyRef: - name: google-application-credentials - key: application-credentials.json - optional: false + value: /var/secrets/google/key.json envFrom: - configMapRef: name: inventory-configmap