Onboarding Fails for new Hosts on DU Having Dynamic Kubelet Configurations

Problem

  • Clusters with nodes having dynamic kubelet configurations applied via Sunpike fail to add new nodes. The nodelet throws the below error:

{"L":"WARN","T":"2025-02-13T19:29:37.533Z","C":"nodelet/nodelet.go:90","M":"Failed to create default config maps for kubelet : failed to create configmap from default kubelet file: failed to read the config file /var/opt/pf9/kube/kubelet-config/bootstrap-config.yaml : open /var/opt/pf9/kube/kubelet-config/bootstrap-config.yaml: no such file or directory"}

Environment

  • Platform9 Managed Kubernetes - 5.11

Resolution

  • This is a known issue reported in PMK-6632 and is now fixed in PMK-5.11.2 and PMK-5.12 releases.

Workaround

Copy the file /var/opt/pf9/kube/kubelet-config/bootstrap-config.yaml from the working node to the affected node. And restart the nodelet phases of the affected node using /opt/pf9/nodelet/nodeletd phases restart

Last updated