NodeGroupForNode()
gets incorrect *apiv1.Node
information
#6886
Labels
NodeGroupForNode()
gets incorrect *apiv1.Node
information
#6886
Which component are you using?: cluster-autoscaler
What version of the component are you using?: master as of 6/1/23 e08681b
Component version:
What k8s version are you using (
kubectl version
)?:kubectl version
OutputWhat environment is this in?: baremetal on ProxmoxVE, K3s
What did you expect to happen?: Expected the
NodeGroupForNode
to receive the right node informationWhat happened instead?: Incorrect
node.Spec.ProviderId
and missing node labelsHow to reproduce it (as minimally and precisely as possible):
I am building a custom cluster autoscaler. There are existing nodes that belong to the node group. When starting the cluster autoscaler, it checks for node groups of all nodes. Log the node information in the call to
NodeGroupForNode
.Anything else we need to know?: If you see the logs below, the function is called and logged multiple times on start up, most of them have the right spec.ProviderId. But some of them do not, and thus the autoscaler logs that the node does not belong to the node pool.
k8s-worker-ca-1
andk8s-worker-ca-2
are part of theAutoscaling
node group, and should have providerIds set toproxmox://Autoscaling/600/1
andproxmox://Autoscaling/600/2
respectively.kratos-master
is the single node master.The text was updated successfully, but these errors were encountered: