Skip to content

Commit 7672c73

Browse files
authored
add probes for console (#1238)
issue: streamnative/eng-support-tickets#3263 ### Documentation Check the box below. Need to update docs? - [ ] `doc-required` (If you need help on updating docs, create a doc issue) - [x] `no-need-doc` (Please explain why) - [ ] `doc` (If this PR contains doc changes) Signed-off-by: lili <lli@streamnative.io>
1 parent 89a9592 commit 7672c73

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ charts/**/*.tgz
1515
charts/**/*.lock
1616

1717
PRIVATEKEY
18-
PUBLICKEY
18+
PUBLICKEY
19+
.cursorindexingignore
20+
.specstory/

charts/sn-platform-slim/templates/streamnative-console/streamnative-console-statefulset.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,33 @@ spec:
262262
resources:
263263
{{ toYaml .Values.streamnative_console.resources | indent 12 }}
264264
{{- end }}
265+
{{- if .Values.streamnative_console.probe.readiness.enabled }}
266+
readinessProbe:
267+
httpGet:
268+
path: /cloud-manager/login/enabled
269+
port: {{ .Values.streamnative_console.ports.frontend }}
270+
initialDelaySeconds: {{ .Values.streamnative_console.probe.readiness.initialDelaySeconds }}
271+
periodSeconds: {{ .Values.streamnative_console.probe.readiness.periodSeconds }}
272+
failureThreshold: {{ .Values.streamnative_console.probe.readiness.failureThreshold }}
273+
{{- end }}
274+
{{- if .Values.streamnative_console.probe.liveness.enabled }}
275+
livenessProbe:
276+
httpGet:
277+
path: /cloud-manager/login/enabled
278+
port: {{ .Values.streamnative_console.ports.frontend }}
279+
initialDelaySeconds: {{ .Values.streamnative_console.probe.liveness.initialDelaySeconds }}
280+
periodSeconds: {{ .Values.streamnative_console.probe.liveness.periodSeconds }}
281+
failureThreshold: {{ .Values.streamnative_console.probe.liveness.failureThreshold }}
282+
{{- end }}
283+
{{- if .Values.streamnative_console.probe.startup.enabled }}
284+
startupProbe:
285+
httpGet:
286+
path: /cloud-manager/login/enabled
287+
port: {{ .Values.streamnative_console.ports.frontend }}
288+
initialDelaySeconds: {{ .Values.streamnative_console.probe.startup.initialDelaySeconds }}
289+
periodSeconds: {{ .Values.streamnative_console.probe.startup.periodSeconds }}
290+
failureThreshold: {{ .Values.streamnative_console.probe.startup.failureThreshold }}
291+
{{- end }}
265292
workingDir: "/pulsar-manager/gateway"
266293
command: ["/pulsar-manager/gateway/gateway-entrypoint.sh"]
267294
env:

charts/sn-platform/templates/streamnative-console/streamnative-console-statefulset.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,33 @@ spec:
272272
resources:
273273
{{ toYaml .Values.streamnative_console.resources | indent 12 }}
274274
{{- end }}
275+
{{- if .Values.streamnative_console.probe.readiness.enabled }}
276+
readinessProbe:
277+
httpGet:
278+
path: /cloud-manager/login/enabled
279+
port: {{ .Values.streamnative_console.ports.frontend }}
280+
initialDelaySeconds: {{ .Values.streamnative_console.probe.readiness.initialDelaySeconds }}
281+
periodSeconds: {{ .Values.streamnative_console.probe.readiness.periodSeconds }}
282+
failureThreshold: {{ .Values.streamnative_console.probe.readiness.failureThreshold }}
283+
{{- end }}
284+
{{- if .Values.streamnative_console.probe.liveness.enabled }}
285+
livenessProbe:
286+
httpGet:
287+
path: /cloud-manager/login/enabled
288+
port: {{ .Values.streamnative_console.ports.frontend }}
289+
initialDelaySeconds: {{ .Values.streamnative_console.probe.liveness.initialDelaySeconds }}
290+
periodSeconds: {{ .Values.streamnative_console.probe.liveness.periodSeconds }}
291+
failureThreshold: {{ .Values.streamnative_console.probe.liveness.failureThreshold }}
292+
{{- end }}
293+
{{- if .Values.streamnative_console.probe.startup.enabled }}
294+
startupProbe:
295+
httpGet:
296+
path: /cloud-manager/login/enabled
297+
port: {{ .Values.streamnative_console.ports.frontend }}
298+
initialDelaySeconds: {{ .Values.streamnative_console.probe.startup.initialDelaySeconds }}
299+
periodSeconds: {{ .Values.streamnative_console.probe.startup.periodSeconds }}
300+
failureThreshold: {{ .Values.streamnative_console.probe.startup.failureThreshold }}
301+
{{- end }}
275302
workingDir: "/pulsar-manager/gateway"
276303
command: ["/pulsar-manager/gateway/gateway-entrypoint.sh"]
277304
env:

0 commit comments

Comments
 (0)