From a9b96e2f01cf8fe2adac146da034cc1eb66b5313 Mon Sep 17 00:00:00 2001 From: AllenZMC Date: Thu, 26 May 2022 23:45:53 +0800 Subject: [PATCH] add livenessProbe for descheduler Signed-off-by: AllenZMC --- artifacts/deploy/karmada-descheduler.yaml | 9 +++++++++ charts/templates/karmada_descheduler.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) 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: