Skip to content

Commit 4711c9c

Browse files
authored
be able to configure server liveness/readiness/startup probe (#300)
* be able to configure server readiness probe * be able to configure all probes
1 parent 67f5eda commit 4711c9c

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

kiali-server/templates/deployment.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ spec:
101101
{{- else }}
102102
scheme: HTTP
103103
{{- end }}
104-
initialDelaySeconds: 5
105-
periodSeconds: 30
104+
initialDelaySeconds: {{ .Values.deployment.probes.readiness.initial_delay_seconds | int | default 5 }}
105+
periodSeconds: {{ .Values.deployment.probes.readiness.period_seconds | int | default 30 }}
106106
livenessProbe:
107107
httpGet:
108108
path: {{ include "kiali-server.server.web_root" . | trimSuffix "/" }}/healthz
@@ -112,8 +112,8 @@ spec:
112112
{{- else }}
113113
scheme: HTTP
114114
{{- end }}
115-
initialDelaySeconds: 5
116-
periodSeconds: 30
115+
initialDelaySeconds: {{ .Values.deployment.probes.liveness.initial_delay_seconds | int | default 5 }}
116+
periodSeconds: {{ .Values.deployment.probes.liveness.period_seconds | int | default 30 }}
117117
startupProbe:
118118
httpGet:
119119
path: {{ include "kiali-server.server.web_root" . | trimSuffix "/" }}/healthz
@@ -123,9 +123,9 @@ spec:
123123
{{- else }}
124124
scheme: HTTP
125125
{{- end }}
126-
initialDelaySeconds: 30
127-
periodSeconds: 10
128-
failureThreshold: 6
126+
failureThreshold: {{ .Values.deployment.probes.startup.failure_threshold | int | default 6 }}
127+
initialDelaySeconds: {{ .Values.deployment.probes.startup.initial_delay_seconds | int | default 30 }}
128+
periodSeconds: {{ .Values.deployment.probes.startup.period_seconds | int | default 10 }}
129129
env:
130130
- name: ACTIVE_NAMESPACE
131131
valueFrom:

kiali-server/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@ deployment:
6969
pod_annotations: {}
7070
pod_labels: {}
7171
priority_class_name: ""
72+
probes:
73+
liveness:
74+
initial_delay_seconds: 5
75+
period_seconds: 30
76+
readiness:
77+
initial_delay_seconds: 5
78+
period_seconds: 30
79+
startup:
80+
failure_threshold: 6
81+
initial_delay_seconds: 30
82+
period_seconds: 10
7283
remote_cluster_resources_only: false
7384
# if deployment.hpa is defined, this replicas setting will be ignored
7485
replicas: 1

0 commit comments

Comments
 (0)