Skip to content

Commit b229e7d

Browse files
committed
Refactor readiness probe to use alloydb proxy health check flag. Add liveness probe to alloy db proxy.
1 parent b8b94d8 commit b229e7d

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

applications/prompt-pub/templates/statefulset.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,13 @@ spec:
7272
- name: AWS_REQUEST_CHECKSUM_CALCULATION
7373
value: WHEN_REQUIRED
7474
readinessProbe:
75-
tcpSocket:
76-
port: 5432
75+
httpGet:
76+
path: /readiness
77+
port: 9040
7778
initialDelaySeconds: 2
7879
periodSeconds: 5
80+
timeoutSeconds: 3
81+
failureThreshold: 3
7982
volumeMounts:
8083
- name: gcp-int-repo-config-volume
8184
mountPath: /opt/lsst/configs/gcp-repo-path
@@ -92,16 +95,29 @@ spec:
9295
command:
9396
- "/alloydb-auth-proxy"
9497
- "--public-ip"
95-
- "--address=0.0.0.0"
98+
- "--address=127.0.0.1"
9699
- "--port=5432"
100+
- "--health-check"
101+
- "--http-port=9040"
97102
- "--credentials-file"
98103
- "/opt/lsst/secrets/alloy-db/key.json"
99104
- {{ .Values.alloyDbProxy.config.instanceUri | quote }}
100105
readinessProbe:
101-
tcpSocket:
102-
port: 5432
106+
httpGet:
107+
path: /readiness
108+
port: 9040
103109
initialDelaySeconds: 2
104110
periodSeconds: 5
111+
timeoutSeconds: 3
112+
failureThreshold: 3
113+
livenessProbe:
114+
httpGet:
115+
path: /liveness
116+
port: 9040
117+
initialDelaySeconds: 30
118+
periodSeconds: 10
119+
timeoutSeconds: 5
120+
failureThreshold: 3
105121
resources:
106122
{{- toYaml .Values.alloyDbProxy.resources | nindent 12 }}
107123
securityContext:

0 commit comments

Comments
 (0)