K8S日志报错-01未初始化
Nov 27 12:57:35 k8s-master01 systemd: Unit kubelet.service entered failed state.
Nov 27 12:57:35 k8s-master01 systemd: kubelet.service failed.
Nov 27 12:57:45 k8s-master01 systemd: kubelet.service holdoff time over, scheduling restart.
Nov 27 12:57:45 k8s-master01 systemd: Stopped kubelet: The Kubernetes Node Agent.
Nov 27 12:57:45 k8s-master01 systemd: Started kubelet: The Kubernetes Node Agent.
Nov 27 12:57:45 k8s-master01 kubelet: Flag --cgroup-driver has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Nov 27 12:57:45 k8s-master01 kubelet: F1127 12:57:45.975122 4022 server.go:198] failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file "/var/lib/kubelet/config.yaml", error: open /var/lib/kubelet/config.yaml: no such file or directory
原因:未初始化K8S
解决办法:kubeadm init --config /root/new.yaml --upload-certs
注:前提是已完成之前K8S环境搭建