Dear All,
Good morning
Thanks to the forum and its archive postings, I was able to solve the issue of my kubelet command throwing error message of
“The connection to the server IPaddress:6443 was refused - did you specify the right host or port?”
I was able to solve it. This is how I was able to solve it. In the forum archive there was similar post explaining the problem and in one of the post I saw a suggestion, the post url I am pasting here
To use the systemd cgroup driver in /etc/containerd/config.toml with runc, set
[plugins.“io.containerd.grpc.v1.cri”.containerd.runtimes.runc]
…
[plugins.“io.containerd.grpc.v1.cri”.containerd.runtimes.runc.options]
SystemdCgroup = true
The systemd cgroup driver is recommended if you use cgroup v2.
From the link
[Container Runtimes | Kubernetes](https://containerd-systemd changes)
now I did the changes, [ I am pasting it here]
itsupport@k8s-master:/etc/containerd$ diff config.toml config.toml-ORG
125c125
< SystemdCgroup = true
---
> SystemdCgroup = false
itsupport@k8s-master:/etc/containerd
Restarted and now it is working file
itsupport@k8s-master:~$ uptime
04:50:27 up 18:11, 1 user, load average: 0.48, 0.24, 0.18itsupport@k8s-master:~$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8s-master NotReady control-plane 22h v1.27.3
k8s-node-a NotReady 19h v1.27.3
k8s-node-b NotReady 18h v1.27.3
itsupport@k8s-master:~$
Once again thanks to all
Thanks
Joseph John