Skip to content

Commit 9b5cca9

Browse files
authored
Merge pull request #58 from csfloat/fix/vpc-egress
use vpc egress to comm with cloud sql
2 parents c10ddb3 + 72e5476 commit 9b5cca9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

deploy/reverse-watch-service.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ spec:
2222
run.googleapis.com/execution-environment: gen2
2323
run.googleapis.com/client-name: cloud-console
2424
run.googleapis.com/startup-cpu-boost: 'true'
25+
run.googleapis.com/network-interfaces: '[{"network":"default","subnetwork":"default"}]'
26+
run.googleapis.com/vpc-access-egress: private-ranges-only
2527
spec:
2628
containerConcurrency: 50
2729
timeoutSeconds: 60
@@ -48,7 +50,7 @@ spec:
4850
- name: DATABASE_HOST
4951
valueFrom:
5052
secretKeyRef:
51-
key: '1'
53+
key: '2'
5254
name: db-host
5355
- name: DATABASE_USER
5456
valueFrom:
@@ -71,8 +73,8 @@ spec:
7173
memory: 8Gi
7274
startupProbe:
7375
timeoutSeconds: 240
74-
periodSeconds: 240
75-
failureThreshold: 1
76+
periodSeconds: 10
77+
failureThreshold: 24
7678
tcpSocket:
7779
port: 80
7880
livenessProbe:

0 commit comments

Comments
 (0)