diff --git a/admin-service/gcp-deploy-service.yaml b/admin-service/gcp-deploy-service.yaml index 2c32dd65..cabeeccb 100644 --- a/admin-service/gcp-deploy-service.yaml +++ b/admin-service/gcp-deploy-service.yaml @@ -12,6 +12,10 @@ spec: labels: app: adminservice spec: + volumes: + - name: google-cloud-keys + secret: + secretName: gac-key containers: - name: adminservice image: gcr.io/PROJECT_ID/IMAGE:TAG @@ -20,6 +24,13 @@ spec: - name: http containerPort: 8080 protocol: TCP + volumeMounts: + - name: google-cloud-keys + mountPath: /var/secrets/google + readOnly: true + env: + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /var/secrets/google/key.json envFrom: - configMapRef: name: admin-configmap diff --git a/deployment/gcpresources/terraform/key.json b/deployment/gcpresources/terraform/key.json index 8b137891..1d0414d3 100644 --- a/deployment/gcpresources/terraform/key.json +++ b/deployment/gcpresources/terraform/key.json @@ -1 +1,13 @@ - +{ + "type": "service_account", + "project_id": "datamesh-2", + "private_key_id": "585b6eed36a592043e8f444bebdcf14d914e78f4", + "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCp1K2e9DkBRSaD\nfZKYba1ZHfVNQ3drUlf1E+aeoc4r8tb4ip8ZcZRnhK0Rip4rpPcW1a1Gq2uZyddi\nzjF59ylJTCFAmuLz2AN3aLSLmBc5npZdewp6LdOcSl2SN8z5OHe2DUmDn0BIVbVD\nGHfQy12p3V+bRWHP8+TVpo/YsqL3YLMcvbG+Nn5o2juUlb3MssDF3YPC/GIirBWz\n0smXVnYtnNQg7ZIlLA8u9RVw3p3P/QQ7BF3Ssc1HzoGXEBQRV/O8VDNySJ0RRe/r\nzp7/hXbA4u3mXdnuXBH/kSNPnqzto9GfL5VzwEdFpRNdPfXraeaM/Gkp8KUQmWP9\ns2s7rhXzAgMBAAECggEAPe64qBRg63Unv+DdwmeQxUR3DceSN5mOSOoKeoQANye2\nPGn07ibs2zlXkeOOndTpZLLknz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aAsjCZ9jaZXKP0HsvO\nyCJ4DXB4NlPxfZQYAHA4WhVaXcTfQvRT64myCLxvqtRhtcBhPh3o/4OpSrY0Ehge\nMXn0dawXjLrAJsBsUgersQ==\n-----END PRIVATE KEY-----\n", + "client_email": "java-car-demo@datamesh-2.iam.gserviceaccount.com", + "client_id": "116961686900137160069", + "auth_uri": "https://accounts.google.com/o/oauth2/auth", + "token_uri": "https://oauth2.googleapis.com/token", + "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/java-car-demo%40datamesh-2.iam.gserviceaccount.com", + "universe_domain": "googleapis.com" +} diff --git a/projects-changes-deploy.txt b/projects-changes-deploy.txt index a2d34583..76710988 100644 --- a/projects-changes-deploy.txt +++ b/projects-changes-deploy.txt @@ -1 +1 @@ -car-ui \ No newline at end of file +admin-service \ No newline at end of file