Im trying to install calico using kubeadm with the following command
kubectl apply -f https://docs.projectcalico.org/v3.9/manifests/calico.yaml
but it's showing the following error
The connection to the server 10.x.x.47:6443 was refused - did you specify the right host or port?
Here is the kubectl cluster-info
output
Kubernetes control plane is running at https://10.x.x.47:6443 CoreDNS is running at https://10.1.100.47:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
PS. Sometimes it shows a different error
ensure CRDs are installed first
I'm on Ubuntu 22.04. Any help will be appreciated. Thank you.
in one of calico github issues I saw someone saying they having the same issue but it was solved by installing the lastest version of docker and k8s. but mine are already latest version. and I am trying kubernetes for the 1st time so I am a bit lost here.