Skip to content

Commit 799b938

Browse files
author
Robin Hermann
committed
feat: optimize probes
1 parent 172fe80 commit 799b938

2 files changed

Lines changed: 30 additions & 5 deletions

File tree

helm/hubble-observer/templates/deployment.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ spec:
4545
{{- with .Values.livenessProbe }}
4646
initialDelaySeconds: {{ .initialDelaySeconds }}
4747
periodSeconds: {{ .periodSeconds }}
48+
successThreshold: {{ .successThreshold }}
4849
timeoutSeconds: {{ .timeoutSeconds }}
4950
failureThreshold: {{ .failureThreshold }}
5051
{{- end }}
@@ -58,8 +59,24 @@ spec:
5859
- --server
5960
- "$(HUBBLE_RELAY_HOST):$(HUBBLE_RELAY_PORT)"
6061
{{- with .Values.readinessProbe }}
62+
periodSeconds: {{ .periodSeconds }}
63+
successThreshold: {{ .successThreshold }}
64+
timeoutSeconds: {{ .timeoutSeconds }}
65+
failureThreshold: {{ .failureThreshold }}
66+
{{- end }}
67+
{{- end }}
68+
{{- if .Values.startupProbe.enabled }}
69+
startupProbe:
70+
exec:
71+
command:
72+
- hubble
73+
- status
74+
- --server
75+
- "$(HUBBLE_RELAY_HOST):$(HUBBLE_RELAY_PORT)"
76+
{{- with .Values.startupProbe }}
6177
initialDelaySeconds: {{ .initialDelaySeconds }}
6278
periodSeconds: {{ .periodSeconds }}
79+
successThreshold: {{ .successThreshold }}
6380
timeoutSeconds: {{ .timeoutSeconds }}
6481
failureThreshold: {{ .failureThreshold }}
6582
{{- end }}

helm/hubble-observer/values.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,24 @@ resources: {}
2525

2626
livenessProbe:
2727
enabled: true
28-
initialDelaySeconds: 5
28+
failureThreshold: 12
29+
initialDelaySeconds: 10
2930
periodSeconds: 10
30-
timeoutSeconds: 5
31-
failureThreshold: 3
31+
successThreshold: 1
32+
timeoutSeconds: 10
3233
readinessProbe:
3334
enabled: true
34-
initialDelaySeconds: 5
35+
failureThreshold: 3
3536
periodSeconds: 10
37+
successThreshold: 1
3638
timeoutSeconds: 5
37-
failureThreshold: 3
39+
startupProbe:
40+
enabled: true
41+
failureThreshold: 20
42+
initialDelaySeconds: 10
43+
periodSeconds: 3
44+
successThreshold: 1
45+
timeoutSeconds: 1
3846

3947
securityContext: {}
4048
# runAsNonRoot: false

0 commit comments

Comments
 (0)