Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 2e5130b

Browse files
committed
DB_ENGINE=cloud_spanner
Inject GOOGLE_APPLICATION_CREDENTIALS
1 parent be0092b commit 2e5130b

File tree

6 files changed

+27
-1
lines changed

6 files changed

+27
-1
lines changed

deploy/kubernetes/base/log-server-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
labels:
1414
io.kompose.service: log-server
1515
spec:
16+
volumes: []
1617
containers:
1718
- name: trillian-logserver
1819
args: [
@@ -37,5 +38,6 @@ spec:
3738
- containerPort: 8090
3839
- containerPort: 8091
3940
resources: {}
41+
volumeMounts: []
4042
restartPolicy: Always
4143
status: {}

deploy/kubernetes/base/log-signer-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
labels:
1414
io.kompose.service: log-signer
1515
spec:
16+
volumes: []
1617
containers:
1718
- name: trillian-logsigner
1819
args: [
@@ -40,5 +41,6 @@ spec:
4041
ports:
4142
- containerPort: 8091
4243
resources: {}
44+
volumeMounts: []
4345
restartPolicy: Always
4446
status: {}

deploy/kubernetes/base/map-server-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
labels:
1414
io.kompose.service: map-server
1515
spec:
16+
volumes: []
1617
containers:
1718
- name: trillian-mapserver
1819
args: [
@@ -38,5 +39,6 @@ spec:
3839
- containerPort: 8090
3940
- containerPort: 8091
4041
resources: {}
42+
volumeMounts: []
4143
restartPolicy: Always
4244
status: {}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- op: add
2+
path: /spec/template/spec/volumes/-
3+
value:
4+
name: secrets-cloudspanner
5+
secret:
6+
secretName: cloudspanner
7+
8+
- op: add
9+
path: /spec/template/spec/containers/0/volumeMounts/-
10+
value:
11+
name: secrets-cloudspanner
12+
mountPath: /secrets/cloudspanner
13+
readOnly: true
14+

deploy/kubernetes/overlays/gke/configmap.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ apiVersion: v1
33
metadata:
44
name: configmap
55
data:
6-
DB_NAME: test:zaphod@tcp(127.0.0.1:3306)/test
6+
DB_NAME: projects/key-transparency/instances/keytransparency-dev/databases/sandbox
7+
DB_ENGINE: cloud_spanner
8+
GOOGLE_APPLICATION_CREDENTIALS: /secrets/cloudspanner/credentials.json
9+

deploy/kubernetes/overlays/gke/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ bases:
33
resources:
44
- managed-cert.yaml
55
patches:
6+
- path: cloudspanner-creds.yaml
7+
target:
8+
kind: Deployment
69
- path: cloudsql-sidecar.yaml
710
target:
811
kind: Deployment

0 commit comments

Comments
 (0)