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
{{ message }}
Repository navigation
Karpenter creates nodes with incorrect node names when using resource based naming #2892
hmm I guess we patched this incorrectly.... although I'm a little confused on how this works.
Kubelet still uses the hostname as the node name, right? And when you turn on resource based naming on a subnet, the hostname of the instance would be with the domain i-08dd5f2b3538142e9.eu-north-1.compute.internal. Is it expected that we use hostname-override in the kubelet to set the hostname as just the instance-id?
I think the confusion comes from legacy cloud provider vs external. Legacy uses the metadata service to get the hostname, which contains domain name, while external uses os.Hostname(), which does not.
We (cloud-provider-aws) decided to drop the domain part specifically to avoid --hostname-override. The domain part also provides no value as part of the domain name.
So make sure you are using the external cloud provider when using RBN.
Activity
bwagner5 commentedon Nov 19, 2022
hmm I guess we patched this incorrectly.... although I'm a little confused on how this works.
Kubelet still uses the hostname as the node name, right? And when you turn on resource based naming on a subnet, the hostname of the instance would be with the domain
i-08dd5f2b3538142e9.eu-north-1.compute.internal. Is it expected that we use hostname-override in the kubelet to set the hostname as just the instance-id?olemarkus commentedon Nov 19, 2022
I think the confusion comes from legacy cloud provider vs external. Legacy uses the metadata service to get the hostname, which contains domain name, while external uses
os.Hostname(), which does not.We (cloud-provider-aws) decided to drop the domain part specifically to avoid
--hostname-override. The domain part also provides no value as part of the domain name.So make sure you are using the external cloud provider when using RBN.