May 2018
Intermediate to advanced
554 pages
13h 51m
English
Now we can start the service. First enable and then start kubelet on your Kubernetes master machine:
$ sudo systemctl enable kubelet && sudo systemctl start kubelet
While checking the status of kubelet, you may be worried to see the status displaying activating (auto-restart); and you may get further frustrated to see the detail logs by the journalctl command, as follows:
error: unable to load client CA file /etc/kubernetes/pki/ca.crt: open /etc/kubernetes/pki/ca.crt: no such file or directory
Don't worry. kubeadm takes care of creating the certificate authorities file. It is defined in the service configuration file, /etc/systemd/system/kubelet.service.d/10-kubeadm.conf by argument KUBELET_AUTHZ_ARGS. The kubelet service ...