Hello Team, I have set up kubernetes cluster, it was working fine, i have upgrad . . .

Vishal Varshney:
Hello Team,
I have set up kubernetes cluster, it was working fine, i have upgraded openssl to 1.1.1 then its stop working
while entering command like
Kubectl get nodes
it shows
The connection to the server <http://10.71.XX.XXX:6443|10.71.XX.XXX:6443> was refused - did you specify the right host or port
after checking /var/log/messages
it shows kubelet.go:2183] node "kubernetes-master.novalocal" not found
can any1 help?

Mohamed Ayman:
Can you try:
$ sudo -i
$ swapoff -a
$ exit
$ strace -eopenat kubectl version

And then try again
$ kubectl get nodes

Ninad Desai:
what does these commands does @Mohamed Ayman? asking out of curiosity to learn

Vishal Varshney:
Hello @Mohamed Ayman, I have tried these command but it doesn’t work!

Mohamed Ayman:
Ensure the swap is off. check this step:
$ mkdir -p $HOME/.kube
$ sudo cp -i admin.conf $HOME/.kube/config
$ sudo chown $(id -u):$(id -g) $HOME/.kube/config

Vishal Varshney:
already have these files in this directory, Plz have a look.

[root@kubernetes-master .kube]# ls -l
total 12
drwxr-x---. 4 root root   35 Dec  3 07:42 cache
-rw-------. 1 root root 5453 Jul 13  2020 config
drwxr-x---. 3 root root 4096 Dec  3 07:38 http-cache

Mohamed Ayman:
please make sure that api-server service is running. check the details for status
systemctl status -i kube-apiserver.service

Then reload the daeomn and start the kube-apiserver using
systemctl daemon-reload
Then start kube-apiserver.