Skip to content

Commit bcda56d

Browse files
authored
Merge pull request #362
Added Redis Dependency for SCIM and Redis Healthcheck in Cloud Run
2 parents 3f35fa6 + 6be90fd commit bcda56d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

beta/google-cloud-run/google-workspace/op-scim-bridge-gw.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ spec:
1010
autoscaling.knative.dev/maxScale: "1"
1111
run.googleapis.com/cpu-throttling: "false"
1212
run.googleapis.com/startup-cpu-boost: "true"
13+
run.googleapis.com/container-dependencies: '{"scim":["redis"]}'
1314
spec:
1415
containers:
1516
- name: scim
@@ -39,6 +40,13 @@ spec:
3940
- --maxmemory 256mb
4041
- --maxmemory-policy volatile-lru
4142
- --save ""
43+
startupProbe:
44+
tcpSocket:
45+
port: 6379
46+
initialDelaySeconds: 5
47+
periodSeconds: 10
48+
failureThreshold: 3
49+
timeoutSeconds: 1
4250
resources:
4351
limits:
4452
cpu: 500m

beta/google-cloud-run/op-scim-bridge.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ spec:
1010
autoscaling.knative.dev/maxScale: "1"
1111
run.googleapis.com/cpu-throttling: "false"
1212
run.googleapis.com/startup-cpu-boost: "true"
13+
run.googleapis.com/container-dependencies: '{"scim":["redis"]}'
1314
spec:
1415
containers:
1516
- name: scim
@@ -30,6 +31,13 @@ spec:
3031
- --maxmemory 256mb
3132
- --maxmemory-policy volatile-lru
3233
- --save ""
34+
startupProbe:
35+
tcpSocket:
36+
port: 6379
37+
initialDelaySeconds: 5
38+
periodSeconds: 10
39+
failureThreshold: 3
40+
timeoutSeconds: 1
3341
resources:
3442
limits:
3543
cpu: 500m

0 commit comments

Comments
 (0)