Mukesh Bhakar:
error: error loading config file “/etc/kubernetes/kubelet.conf”: open /etc/kubernetes/kubelet.conf: permission denied
Mohamed Ayman:
try su - root
, then run ur commands
Mukesh Bhakar:
then I am getting below error… The connection to the server localhost:8080 was refused - did you specify the right host or port?
Mukesh Bhakar:
earlier I was getting same error on vagrant but then I export this and started this error
Mukesh Bhakar:
it looks I need to restart from scratch,
Mukesh Bhakar:
The connection to the server 192.168.56.2:6443 was refused - did you specify the right host or port?
the above
Mohamed Ayman:
Where is the location of ~/.kube/config file ?
Mohamed Ayman:
u should run these commands
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Mukesh Bhakar:
I alrady this this as well but nothing worked… When I did fresh installation than it worked for once but again same issue…
Mukesh Bhakar:
The connection to the server 192.168.56.2:6443 was refused - did you specify the right host or port?
Mohamed Ayman:
Can you share the output of sudo systemctl status kubelet -l
from the master?