-
Bug
-
Resolution: Not a Bug
-
Normal
-
None
-
4.12.z
Description of problem:
KCM will restart when leader election failed due to the restart of kube-apiserver. This is because the leaseDurationSeconds for KCM is too short in SNO scenario, which is 15 seconds.
Version-Release number of selected component (if applicable):
OCP 4.12
How reproducible:
100%
Steps to Reproduce:
1.Kill kube-apiserver in SNO $ oc exec -it -n openshift-kube-apiserver kube-apiserver-XXXXXX -c kube-apiserver -- /bin/sh -c "kill 1" 2. Watch the KCM Pods 3.
Actual results:
The KCM will crash and restart
Expected results:
The KCM should survive
Additional info:
For other components, the leaseDurationSeconds almost meet this criteria: https://github.com/openshift/library-go/blob/6ac65c5454f9effede61a6e52e7fdb06a27fc26e/pkg/config/leaderelection/leaderelection.go#L148