Hello,
Cluster information:
Kubernetes version:
root@srv-lx-k8s-master-01:/home/dadiaspe/.kube# kubeadm version --output json
{
"clientVersion": {
"major": "1",
"minor": "19",
"gitVersion": "v1.19.2",
"gitCommit": "f5743093fd1c663cb0cbc89748f730662345d44d",
"gitTreeState": "clean",
"buildDate": "2020-09-16T13:38:53Z",
"goVersion": "go1.15",
"compiler": "gc",
"platform": "linux/amd64"
}
}
Cloud being used: bare-metal
Installation method:
apt-get install -y kubelet kubeadm kubectl
Host OS: Ubuntu 20.04.1 LTS
CNI and version:
CRI and version:
As part of the install process (I followed this guide https://www.nakivo.com/blog/install-kubernetes-ubuntu/), I have to run this command, but getting the following error:
root@srv-lx-k8s-master-01:/home/dadiaspe/.kube# kubectl apply -f ./kube-flannel.yml
The connection to the server localhost:8080 was refused - did you specify the right host or port?
I’ve seen this error all over Internet in different forums, including this one, and the recommendation is to run few commands, but i’ve done that already (as a regular user, not as root):
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Here I confirm I’ve done this:
dadiaspe@srv-lx-k8s-master-01:~$ ls -ltr $HOME/.kube
total 8
-rw------- 1 dadiaspe dadiaspe 5569 Oct 11 08:52 config
What am I missing?
Thanks so much