You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug:
When installing rke2 in an environment where the hostname of a node (take a worker node called "work" as an example) is not resolvable by a controller node, kubectl logs and kubectl port-forward doesn't work.
Basically the controller node tries to resolve "work" into an ip address which fails IF the environment (network) is not configured to resolve hostnames. This hit me when configuring rke2 in hetzner cloud.
This could be taken as a default requirement BUT this is not an issue when installing kubernetes with kubeadm.
There was an helm issue helm/helm#1455 which itself references a kubernetes bug kubernetes/kubernetes#22770 "Unable to resolve hostname using kubectl logs"
The issue was fixed in kubernetes/kubernetes#33718 and this make me believe that rke2 is doing something different/broken in this regard.
Potential solutions:
Configure a local dnsmsaq and tell it the ips to hostnames of your nodes (needs manual setup/scripting)
Configure/fix local dns in your network by potentially operating or fixing an dhcp server and dns server
Change kubelet-preferred-address-types to "InternalIP,Hostname,ExternalIP" on the api server (this exists as extra args)
In config.yaml:
kube-apiserver-arg:
Describe the bug:
When installing rke2 in an environment where the hostname of a node (take a worker node called "work" as an example) is not resolvable by a controller node, kubectl logs and kubectl port-forward doesn't work.
Basically the controller node tries to resolve "work" into an ip address which fails IF the environment (network) is not configured to resolve hostnames. This hit me when configuring rke2 in hetzner cloud.
This could be taken as a default requirement BUT this is not an issue when installing kubernetes with kubeadm.
There was an helm issue helm/helm#1455 which itself references a kubernetes bug kubernetes/kubernetes#22770 "Unable to resolve hostname using kubectl logs"
The issue was fixed in kubernetes/kubernetes#33718 and this make me believe that rke2 is doing something different/broken in this regard.
Potential solutions:
In config.yaml:
kube-apiserver-arg:
Original bug #637 my original bug #975
The text was updated successfully, but these errors were encountered: