Skip to content

Commit 0898559

Browse files
committed
Add startup probe and remove initial delay since startup probe is added.
1 parent b229e7d commit 0898559

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

applications/prompt-pub/templates/statefulset.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ spec:
7171
value: "0"
7272
- name: AWS_REQUEST_CHECKSUM_CALCULATION
7373
value: WHEN_REQUIRED
74+
startupProbe:
75+
httpGet:
76+
path: /readiness
77+
port: 9040
78+
failureThreshold: 20
79+
periodSeconds: 5
7480
readinessProbe:
7581
httpGet:
7682
path: /readiness
@@ -102,20 +108,24 @@ spec:
102108
- "--credentials-file"
103109
- "/opt/lsst/secrets/alloy-db/key.json"
104110
- {{ .Values.alloyDbProxy.config.instanceUri | quote }}
105-
readinessProbe:
111+
startupProbe:
106112
httpGet:
107113
path: /readiness
108114
port: 9040
109-
initialDelaySeconds: 2
115+
failureThreshold: 20
110116
periodSeconds: 5
117+
readinessProbe:
118+
httpGet:
119+
path: /readiness
120+
port: 9040
121+
periodSeconds: 10
111122
timeoutSeconds: 3
112123
failureThreshold: 3
113124
livenessProbe:
114125
httpGet:
115126
path: /liveness
116127
port: 9040
117-
initialDelaySeconds: 30
118-
periodSeconds: 10
128+
periodSeconds: 20
119129
timeoutSeconds: 5
120130
failureThreshold: 3
121131
resources:

0 commit comments

Comments
 (0)