From 583e7e20ce03d0423bdca30a24d34384fbe9bcd9 Mon Sep 17 00:00:00 2001 From: abidknashtech <127501072+abidknashtech@users.noreply.github.com> Date: Wed, 15 Nov 2023 12:29:20 +0530 Subject: [PATCH] Update gcp-deploy-service.yaml --- inventory-service/gcp-deploy-service.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inventory-service/gcp-deploy-service.yaml b/inventory-service/gcp-deploy-service.yaml index 64d80800..4a261370 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: gcp-json-key containers: - name: inventoryservice image: gcr.io/PROJECT_ID/IMAGE:TAG @@ -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: @@ -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