Closed jeffreymlewis closed 2 years ago
The issue is that Kubernetes 1.24+ no longer supports Dockershim, so we need to install cri-docker
and configure kubelet to use it. This is a simple (though tedious) process.
https://github.com/Mirantis/cri-dockerd
Another hint. You need to build cri-dockerd
on one of the master vagrant nodes, then scp the binary to the worker nodes. The worker nodes themselves don't have sufficient ram for the go build...
step.
Once you have cri-dockerd
installed and running on the workers, add the --container-runtime-endpoint
flag in /etc/systemd/system/kubelet.service
and you're good to go!
[Unit]
Description=Kubernetes Kubelet
Documentation=https://github.com/kubernetes/kubernetes
After=docker.service
Requires=docker.service
[Service]
ExecStart=/usr/local/bin/kubelet \
--config=/var/lib/kubelet/kubelet-config.yaml \
--kubeconfig=/var/lib/kubelet/kubeconfig \
--container-runtime-endpoint=/run/cri-dockerd.sock \
--v=2
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
Hi @jeffreymlewis
We are in the process of performing a full refresh of this to v1.24. There are a lot of changes involved! This is currently in review and should go live soon. We also intend to update this repo to keep pace with the version currently used by CKA exam, so will advance to 1.25 soon.
Watch this space.
I've been using this wonderful guide to install kubernetes
v1.24.3
in vagrant. I've gotten over most of the hurdles but I cannot get kubelet running on the worker nodes. The error seems to be this. Let me know if you have any ideas.I'm using the following config and systemd unit files
(/var/lib/kubelet/kubelet-config.yaml)
(/etc/systemd/system/kubelet.service)