Nodelet Phases Restart on Master Node Stuck at "Wait for k8s services and network to be up" Stage.

Problem

The scaling of master node in an existing cluster fails, the subsequent nodelet phases restart stuck at "Wait for k8s services and network to be up" stage.

In the kubelet logs below error observed:

I0507 19:41:50.579598   28415 kubelet.go:416] "Attempting to sync node with API server"
I0507 19:41:50.579604   28415 kubelet.go:278] "Adding static pod path" path="/etc/pf9/kube.d/master.yaml"
I0507 19:41:50.579614   28415 file.go:68] "Watching path" path="/etc/pf9/kube.d/master.yaml"
I0507 19:41:50.579620   28415 kubelet.go:289] "Adding apiserver pod source"
I0507 19:41:50.579626   28415 apiserver.go:42] "Waiting for node sync before watching apiserver pods"
E0507 19:41:50.579718   28415 file_linux.go:61] "Unable to read config path" err="path does not exist, ignoring" path="/etc/pf9/kube.d/master.yaml"
E0507 19:41:50.579720   28415 file.go:98] "Unable to read config path" err="path does not exist, ignoring" path="/etc/pf9/kube.d/master.yaml"

Environment

  • Platform9 Managed Kubenetes - v5.6

  • Kubernetes - v1.23

Cause

  • The static pods(control-plane pods) were pointing towards non-existing file/etc/pf9/kube.d/master.yaml.

  • A known bug is causing this issue PMK-5807.

Resolution

  • The issue is fixed in Platform9 Managed Kubernetes v5.7. Reference JIRA [PMK-5807].

Additional Information

  • In nodelet.log file below error observed.

  • As a workaround updated the static pod file path in master-default-kubelet-config configmap.

  • Restart the PMK Stack.

Last updated