I deployed a Kubernetes cluster using kubeadm
.
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-172-31-33-9.us-east-2.compute.internal NotReady <none> 48m v1.22.2
ip-172-31-46-53.us-east-2.compute.internal NotReady control-plane,master 49m v1.22.2
ip-172-31-47-245.us-east-2.compute.internal NotReady <none> 6s v1.22.2
The nodes are NotReady
because I haven't installed a networking plugin. I want to use keep it simple and use kubenet
. The instructions say:
Kubelet must be run with the --network-plugin=kubenet argument to enable the plugin
but I can't figure out how to do that. I have tried adding it to various configuration files, such as /usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf
and /etc/sysconfig/kubelet
, and restaring kubelet, but none of it works.
How do I use kubenet
with kubeadm
?