Skip to content

Commit

Permalink
probes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli committed Nov 11, 2024
1 parent 7883cf2 commit 12b0b18
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions kiali-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,25 @@ spec:
- "--zap-log-level=info"
- "--leader-election-id={{ include "kiali-operator.fullname" . }}"
- "--watches-file=./$(WATCHES_FILE)"
- "--health-probe-bind-address=:6789"
terminationMessagePolicy: FallbackToLogsOnError
readinessProbe:
httpGet:
path: /readyz
port: 6789
periodSeconds: 30
livenessProbe:
httpGet:
path: /healthz
port: 6789
periodSeconds: 30
startupProbe:
httpGet:
path: /healthz
port: 6789
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 6
securityContext:
{{- if .Values.securityContext }}
{{- toYaml .Values.securityContext | nindent 10 }}
Expand Down
12 changes: 12 additions & 0 deletions kiali-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ spec:
{{- end }}
initialDelaySeconds: 5
periodSeconds: 30
startupProbe:
httpGet:
path: {{ include "kiali-server.server.web_root" . | trimSuffix "/" }}/healthz
port: api-port
{{- if (include "kiali-server.identity.cert_file" .) }}
scheme: HTTPS
{{- else }}
scheme: HTTP
{{- end }}
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 6
env:
- name: ACTIVE_NAMESPACE
valueFrom:
Expand Down

0 comments on commit 12b0b18

Please sign in to comment.