Skip to content

Commit

Permalink
added GCP json env.admin service
Browse files Browse the repository at this point in the history
  • Loading branch information
abidknashtech committed Nov 30, 2023
1 parent bfb1484 commit 12d2773
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
11 changes: 11 additions & 0 deletions admin-service/gcp-deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
14 changes: 13 additions & 1 deletion deployment/gcpresources/terraform/key.json
Original file line number Diff line number Diff line change
@@ -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+DdwmeQxUR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Psr3UfNAFIg0EKfW+TG6NFGZLKLU5CT7Od2a9G2KrHGaAsjCZ9jaZXKP0HsvO\nyCJ4DXB4NlPxfZQYAHA4WhVaXcTfQvRT64myCLxvqtRhtcBhPh3o/4OpSrY0Ehge\nMXn0dawXjLrAJsBsUgersQ==\n-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"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"
}
2 changes: 1 addition & 1 deletion projects-changes-deploy.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
car-ui
admin-service

0 comments on commit 12d2773

Please sign in to comment.