diff --git a/.github/workflows/car-demo-pipeline.yml b/.github/workflows/car-demo-pipeline.yml index d17d81bd..ecfb9028 100644 --- a/.github/workflows/car-demo-pipeline.yml +++ b/.github/workflows/car-demo-pipeline.yml @@ -28,8 +28,6 @@ jobs: - uses: google-github-actions/setup-gcloud@v1 with: project_id: ${{ env.GKE_PROJECT }} - service_account_key: ${{env.GKE_KEY}} - export_default_credentials: true # Configure Docker to use the gcloud command-line tool as a credential # helper for authentication @@ -42,4 +40,3 @@ jobs: . apps-deployment-script.sh "us-east1" env: GITHUB_TOKEN: ${{ github.token }} - GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GKE_KEY }} diff --git a/inventory-service/gcp-deploy-service.yaml b/inventory-service/gcp-deploy-service.yaml index 3e7279ab..4f45f333 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-keys + secret: + secretName: gac-key containers: - name: inventoryservice image: gcr.io/PROJECT_ID/IMAGE:TAG @@ -22,7 +26,13 @@ spec: - name: http containerPort: 9091 protocol: TCP + volumeMounts: + - name: google-cloud-keys + mountPath: /var/secrets/google + readOnly: true env: + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /var/secrets/google/key.json - name: MYSQL_DB_USERNAME valueFrom: secretKeyRef: @@ -106,8 +116,8 @@ metadata: name: inventory-configmap data: # Configuration values can be set as key-value properties - MYSQL_HOST: 35.237.167.102 - AXON_HOST: 34.74.201.108:8124 + MYSQL_HOST: 104.196.43.152 + AXON_HOST: 35.190.149.67:8124 SERVICE_NAME: InventoryService GCP_PROJECT_ID: datamesh-2 PRODUCT_SUBSCRIPTION: inventory_subscription