Karpenter creates Node objects with the wrong name #927
Labels
bug
Something isn't working
burning
Time sensitive issues
kubernetes
Kubernetes API related
kubernetes-1.23
Issues related to Kubernetes 1.23 compat
Version
Karpenter: v0.51.1
Kubernetes: v1.23.0-rc.1
Expected Behavior
Karpenter creates node objects with the correct node name (e.g i-0df38da50804be2c0 )
Actual Behavior
Karpeneter always create objects using the private DNS name of instances (e.g ip-172-20-122-63.eu-central-1.compute.internal)
Steps to Reproduce the Problem
--hostname-override
on the kubelet, letting it default toos.hostname
Karpenter will then assume the node name is ip-x-x-x-x..compute.internal, but the actual node name will be i-xxxxxxx
Note that the node names should not be FQDN, only the hostname.
This change was implemented in cloud-provider-AWS to support things like IPv6-native subnets and will be a part of CCM 1.23.
I am not sure how Karpenter should know the correct Node name up front. The easiest implementation would probably be a CLI flag on the controller.
The text was updated successfully, but these errors were encountered: