KubeDNS error, server misbehaving KubeDNS error, server misbehaving kubernetes kubernetes

KubeDNS error, server misbehaving


I have a problem trying exec'ing into a container

As you see, Kubernetes is trying to connect to your nodes use the names like worker1, which cannot be resolved in your network.

You have 2 ways to fix it:

  1. Use real FQDN for all your nodes which can be resolved. Usually, VMs in clouds have resolvable DNS names, but it looks like in DO they are not. So, you need to create domain names manually and point them to your servers. Try to check DO DNS service. I recommend you that way, it is always good when you have your own DNS names for your infrastructure.
  2. Make your names like worker1 resolvable for Kubernetes components, maybe some custom DNS server or records in /etc/hosts.

UPD:

From @Richard87, for future reference: the third way is to use option --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname.