Update:
I have identified additional information relevant for this error:
[core@vm191-fcos ~]$ sudo systemctl status kubelet
* kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset:
disabled)
Drop-In: /usr/lib/systemd/system/kubelet.service.d
`-10-kubeadm.conf
Active: activating (auto-restart) (Result: exit-code) since Tue 2020-01-28 08:17:31
UTC; 9s ago
Docs:
https://kubernetes.io/docs/
Process: 284824 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS
$KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited,
status=255/EXCEPTION)
Main PID: 284824 (code=exited, status=255/EXCEPTION)
Jan 28 08:17:41 vm191-fcos systemd[1]: kubelet.service: Scheduled restart job, restart
counter is at 7470.
Jan 28 08:17:41 vm191-fcos systemd[1]: Stopped kubelet: The Kubernetes Node Agent.
Jan 28 08:17:41 vm191-fcos systemd[1]: Started kubelet: The Kubernetes Node Agent.
Jan 28 08:17:41 vm191-fcos kubelet[284841]: 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.
Jan 28 08:17:42 vm191-fcos kubelet[284841]: F0128 08:17:41.999896 284841 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
Jan 28 08:17:42 vm191-fcos systemd[1]: kubelet.service: Main process exited, code=exited,
status=255/EXCEPTION
Jan 28 08:17:42 vm191-fcos systemd[1]: kubelet.service: Failed with result
'exit-code'.
The root cause is clear: /var/lib/kubelet/config.yaml is missing.
This raises the question how K8S should be installed on Fedora CoreOS?
Should I install the packages in "toolbox" using command
sudo dnf install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
or should I install a layered package using command
sudo rpm-ostree install kubelet kubeadm kubectl
Please advise.
Hey Thomas,
Sorry you're having so much trouble with this. I mentioned this in another
thread you started, but I'll say it again here:
Unfortunately we don't have a good story for installing K8S on Fedora
CoreOS right now. Some people have done it themselves, but we don't have
any published or recommended way to do it right now. We have concentrated
on getting the OS out the door and now we can start to bite off some of
these higher level goals.
Here is an issue you can follow where we are having discussions about this
topic: