Miguel Gonzalez:
Hi,
I have problems doing the CKA lab - CLUSTER INSTALLATION USING KUBEADM
eth0 IP:
root@controlplane:~# ifconfig eth0 | grep inet
inet 10.21.172.3 netmask 255.255.255.0 broadcast 10.21.172.255
kubelet version:
root@controlplane:~# kubelet --version
Kubernetes v1.22.3
kubeadmin init command:
root@controlplane:~# kubeadm init --apiserver-cert-extra-sans=controlplane --apiserver-advertise-address 10.21.172.3 --pod-network-cidr=10.244.0.0/16
This is the error:
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The 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-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The 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.
Checked kubelet service:
root@controlplane:~# systemctl status kubelet● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: active (running) since Fri 2021-10-29 13:03:33 UTC; 5s ago
Docs: <https://kubernetes.io/docs/home/>
Main PID: 23619 (kubelet)
Tasks: 20 (limit: 5529)
CGroup: /system.slice/kubelet.service
├─23619 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --
└─23638 systemd-run --description=Kubernetes systemd probe --scope true
Oct 29 13:03:33 controlplane kubelet[23619]: Flag --network-plugin has been deprecated, will be removed along with dockershim.
Oct 29 13:03:33 controlplane kubelet[23619]: Flag --network-plugin has been deprecated, will be removed along with dockershim.
but it’s the same issue after restarting the services… any idea?