refactor: reorder liveness and readiness probes

This commit is contained in:
Paul Laffitte
2025-02-25 18:05:23 +01:00
committed by Paul Laffitte
parent 25e0510a8a
commit 508d6350cf
2 changed files with 20 additions and 20 deletions

View File

@@ -144,16 +144,16 @@ spec:
- {{ tpl (. | toYaml) $ | indent 10 | trim }}
{{- end }}
{{- if not $.Values.rbacProxy.enabled }}
livenessProbe:
ports:
- name: metrics
containerPort: {{ $.Values.podListenPort }}
readinessProbe:
httpGet:
path: /healthz
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
ports:
- name: metrics
containerPort: {{ $.Values.podListenPort }}
readinessProbe:
livenessProbe:
httpGet:
path: /healthz
port: metrics
@@ -177,16 +177,16 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
livenessProbe:
ports:
- name: metrics
containerPort: {{ $.Values.podListenPort }}
readinessProbe:
httpGet:
path: /healthz
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
ports:
- name: metrics
containerPort: {{ $.Values.podListenPort }}
readinessProbe:
livenessProbe:
httpGet:
path: /healthz
port: metrics

View File

@@ -148,16 +148,16 @@ spec:
{{- end }}
{{- if not .Values.rbacProxy.enabled }}
- --listen-address=:{{ .Values.podListenPort }}
livenessProbe:
ports:
- name: metrics
containerPort: {{ .Values.podListenPort }}
readinessProbe:
httpGet:
path: /healthz
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
ports:
- name: metrics
containerPort: {{ .Values.podListenPort }}
readinessProbe:
livenessProbe:
httpGet:
path: /healthz
port: metrics
@@ -182,16 +182,16 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
livenessProbe:
ports:
- name: metrics
containerPort: {{ .Values.podListenPort }}
readinessProbe:
httpGet:
path: /healthz
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
ports:
- name: metrics
containerPort: {{ .Values.podListenPort }}
readinessProbe:
livenessProbe:
httpGet:
path: /healthz
port: metrics