k8s 子节点的 kubelet 起不来
chenzw2:
systemctl start kubelet
启动报错如下:
Dec 21 09:27:14 localhost.localdomain systemd[1]: Started kubelet: The Kubernetes Node Agent.
Dec 21 09:27:14 localhost.localdomain kubelet[37163]: E1221 09:27:14.927874 37163 run.go:72] "command failed" err="failed to load kubelet config file, path: /var/lib/kubelet/config.yaml, error: failed to load Kubelet config file /var/lib/kubelet/config.y>Dec 21 09:27:14 localhost.localdomain systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
Dec 21 09:27:14 localhost.localdomain systemd[1]: kubelet.service: Failed with result 'exit-code'.
看报错是缺少/var/lib/kubelet/config.yaml 文件,问题是这个配置文件不是需要 kebeadm init 才会生成吗? k8s 子节点不需要执行这个命令吧?求大佬指导