Skip to content

Commit

Permalink
be able to configure all probes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli committed Nov 13, 2024
1 parent 98a6d85 commit 6ef1225
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 7 additions & 7 deletions kiali-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ spec:
{{- else }}
scheme: HTTP
{{- end }}
initialDelaySeconds: {{ .Values.deployment.readiness_probe.initial_delay_seconds | int | default 5 }}
periodSeconds: {{ .Values.deployment.readiness_probe.period_seconds | int | default 30 }}
initialDelaySeconds: {{ .Values.deployment.probes.readiness.initial_delay_seconds | int | default 5 }}
periodSeconds: {{ .Values.deployment.probes.readiness.period_seconds | int | default 30 }}
livenessProbe:
httpGet:
path: {{ include "kiali-server.server.web_root" . | trimSuffix "/" }}/healthz
Expand All @@ -112,8 +112,8 @@ spec:
{{- else }}
scheme: HTTP
{{- end }}
initialDelaySeconds: 5
periodSeconds: 30
initialDelaySeconds: {{ .Values.deployment.probes.liveness.initial_delay_seconds | int | default 5 }}
periodSeconds: {{ .Values.deployment.probes.liveness.period_seconds | int | default 30 }}
startupProbe:
httpGet:
path: {{ include "kiali-server.server.web_root" . | trimSuffix "/" }}/healthz
Expand All @@ -123,9 +123,9 @@ spec:
{{- else }}
scheme: HTTP
{{- end }}
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 6
initialDelaySeconds: {{ .Values.deployment.probes.startup.initial_delay_seconds | int | default 30 }}
periodSeconds: {{ .Values.deployment.probes.startup.period_seconds | int | default 10 }}
failureThreshold: {{ .Values.deployment.probes.startup.failure_threshold | int | default 6 }}
env:
- name: ACTIVE_NAMESPACE
valueFrom:
Expand Down
14 changes: 11 additions & 3 deletions kiali-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,17 @@ deployment:
pod_annotations: {}
pod_labels: {}
priority_class_name: ""
readiness_probe:
initial_delay_seconds: 5
period_seconds: 30
probes:
liveness:
initial_delay_seconds: 5
period_seconds: 30
readiness:
initial_delay_seconds: 5
period_seconds: 30
startup:
initial_delay_seconds: 5
period_seconds: 30
failure_threshold: 6
remote_cluster_resources_only: false
# if deployment.hpa is defined, this replicas setting will be ignored
replicas: 1
Expand Down

0 comments on commit 6ef1225

Please sign in to comment.