From 3f00b85bf120d6140cfa1e94d47f1a5eb4a2a8a6 Mon Sep 17 00:00:00 2001 From: abidknashtech <127501072+abidknashtech@users.noreply.github.com> Date: Wed, 15 Nov 2023 12:53:56 +0530 Subject: [PATCH] Update gcp-deploy-service.yaml --- inventory-service/gcp-deploy-service.yaml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/inventory-service/gcp-deploy-service.yaml b/inventory-service/gcp-deploy-service.yaml index 4a261370..3ebf6073 100644 --- a/inventory-service/gcp-deploy-service.yaml +++ b/inventory-service/gcp-deploy-service.yaml @@ -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 @@ -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: @@ -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: