Problem scenario
You run this command:
kubectl get cluster-info
You receive this error message:
"Unable to connect to the server: dial tcp: lookup ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789.yl4.FQDN.com on 172.55.44.33: no such host"
Solution
Possible solution #1
Ask yourself these three questions:
- Have you recently destroyed a Kubernetes cluster?
- Is the intended Kubernetes cluster running?
- Have there been changes to networking or firewall configurations thereby blocking the server with kubectl to the cluster itself?
Possible solution #2
If you want to modify the config file that governs the kubectl settings, do the following:
cd ~
cd .kube
Back up the config file in this directory (e.g., cp config /home/jdoe/config.bak)
Edit the config file in this directory.
Possible solution #3
See this posting.