R Banerjee:
Question: Do we need to remember the whole path when installing weave/ flannel as the CNI with kubeadm?
todoriri:
you have the path to weave in the docs
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/
R Banerjee:
aah, ok… but if we are asked to install flannel ( I am not sure if we would be or not)
todoriri:
They shouldn’t ask to install any specific CNI plugin, unless they provide also the path in the question, I believe
todoriri:
when is your exam?
R Banerjee:
very very soon
R Banerjee:
Next week …
Sameer Jain:
https://kubernetes.io/fr/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network
Sameer Jain:
here all the networking path if you change language
todoriri:
Thanks for the URL Sameer!
Sameer Jain:
just make sure that for weave --pod-network-cidr=10.32.0.0/12
Sameer Jain:
while for flannel command is outdated replace
a70459be0084506e4ec919aa1c114638878db11b
with master
and default cidr block is --pod-network-cidr = 10.244.0.0/16
R Banerjee:
Right now, I am restarting the lab for kubeadm… I seemed to have installed it incorrectly twice ( or maybe the answer is not working correctly)
R Banerjee:
~While running the lab for setting up kubeadm, I just ran apt-get flannel and the kubeadm installation worked… that was a bit weird~
~Weird bcz I didn’t have to configure flannel~
Seems kubelet doesn’t work, getting error during kubeadm init
R Banerjee:
he HTTP call equal to ‘curl -sSL http://localhost:10248/healthz’ failed with error: Get “http://localhost:10248/healthz”: dial tcp 127.0.0.1:10248: connect: connection refused.
Kubelet fails to start… if this happens in the main exam, how to recover ?
Sameer Jain:
what was kubeadm init command used?
todoriri:
check the cgroup drivers on kubelet and docker, they must use the same driver
https://kodekloud.slack.com/archives/CHMV3P9NV/p1629204957296100?thread_ts=1629202490.295400&cid=CHMV3P9NV
R Banerjee:
Sorry, I went out after temporarily giving up
I will check the exec-opts, I feel @todoriri is right Ididnt check the cgroup but it mightbe probablytheone… will test it out in a few hours