From 0ed4e99b7a63f02154982412c7a162a73c118dac Mon Sep 17 00:00:00 2001 From: Sergey Bondarev Date: Wed, 28 Jun 2023 18:53:30 +0300 Subject: [PATCH] Scheduler liveness probe check on https proto, 10259 port if k8s version above 1.23.0 --- .../templates/manifests/kube-scheduler.manifest.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/kubernetes/control-plane/templates/manifests/kube-scheduler.manifest.j2 b/roles/kubernetes/control-plane/templates/manifests/kube-scheduler.manifest.j2 index 01b34a4c681..c91bccb91a9 100644 --- a/roles/kubernetes/control-plane/templates/manifests/kube-scheduler.manifest.j2 +++ b/roles/kubernetes/control-plane/templates/manifests/kube-scheduler.manifest.j2 @@ -47,7 +47,12 @@ spec: httpGet: host: 127.0.0.1 path: /healthz +{% if kube_version is version('v1.23', '>=') %} + port: 10259 + scheme: HTTPS +{% else %} port: 10251 +{% endif %} initialDelaySeconds: 30 timeoutSeconds: 10 volumeMounts: