If this is causing `kubectl exec` and `kubectl logs` commands to fail, you might be able to work around that by setting the kubelet-preferred-address-types config of kube-apiserver[1] to prefer Hostname first:
juju config kubernetes-control-plane api-extra-args="kubelet-preferred-address-types=Hostname,InternalIP,InternalDNS,ExternalDNS,ExternalIP"
But that will only work if hostnames like worker-3 are resolveable to good IPs.
[1]: https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
If this is causing `kubectl exec` and `kubectl logs` commands to fail, you might be able to work around that by setting the kubelet- preferred- address- types config of kube-apiserver[1] to prefer Hostname first:
juju config kubernetes- control- plane api-extra- args="kubelet- preferred- address- types=Hostname, InternalIP, InternalDNS, ExternalDNS, ExternalIP"
But that will only work if hostnames like worker-3 are resolveable to good IPs.
[1]: https:/ /kubernetes. io/docs/ reference/ command- line-tools- reference/ kube-apiserver/