I'm trying to get kubelet config.yaml file on my broken production cluster with no luck. The command I am using is:
kubeadm alpha phase kubelet config write-to-disk --config=/var/lib/kubelet/config.yamlThis returns the following error:
no InitConfiguration or ClusterConfiguration kind was found in the YAML fileCould somebody please help me resolve this? Thanks.
You basically need to print the config prior (The one that contains the InitConfiguration and the ClusterConfiguration:
$ kubeadm config print-default > cluster.yamlThen:
$ kubeadm alpha phase kubelet config write-to-disk --config=cluster.yaml