diff --git a/artifacts/deploy/karmada-descheduler.yaml b/artifacts/deploy/karmada-descheduler.yaml index 71ba0dbe0bb5..a685572f33da 100644 --- a/artifacts/deploy/karmada-descheduler.yaml +++ b/artifacts/deploy/karmada-descheduler.yaml @@ -27,6 +27,15 @@ spec: - --kubeconfig=/etc/kubeconfig - --bind-address=0.0.0.0 - --v=4 + livenessProbe: + httpGet: + path: /healthz + port: 10358 + scheme: HTTP + failureThreshold: 3 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 volumeMounts: - name: kubeconfig subPath: kubeconfig diff --git a/charts/templates/karmada_descheduler.yaml b/charts/templates/karmada_descheduler.yaml index 9cd03a564a52..91332f2daf57 100644 --- a/charts/templates/karmada_descheduler.yaml +++ b/charts/templates/karmada_descheduler.yaml @@ -51,6 +51,15 @@ spec: - --kubeconfig=/etc/kubeconfig - --bind-address=0.0.0.0 - --v=4 + livenessProbe: + httpGet: + path: /healthz + port: 10358 + scheme: HTTP + failureThreshold: 3 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 volumeMounts: {{- include "karmada.kubeconfig.volumeMount" . | nindent 12 }} resources: