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
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
kubelet.go:2183] node "kubernetes-master.novalocal" not found
can any1 help?
Can you try:
sudo -i swapoff -a
exit strace -eopenat kubectl version
And then try again
$ kubectl get nodes
what does these commands does @Mohamed Ayman? asking out of curiosity to learn
Hello @Mohamed Ayman, I have tried these command but it doesn’t work!
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
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
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
Then start kube-apiserver.