diff --git a/cluster-autoscaler/cloudprovider/magnum/magnum_cloud_provider.go b/cluster-autoscaler/cloudprovider/magnum/magnum_cloud_provider.go index 7f254170da31..e2f33fc3ba8a 100644 --- a/cluster-autoscaler/cloudprovider/magnum/magnum_cloud_provider.go +++ b/cluster-autoscaler/cloudprovider/magnum/magnum_cloud_provider.go @@ -125,6 +125,11 @@ func (mcp *magnumCloudProvider) NodeGroupForNode(node *apiv1.Node) (cloudprovide return nil, nil } + // Ignore control-plane nodes + if _, found := node.ObjectMeta.Labels["node-role.kubernetes.io/control-plane"]; found { + return nil, nil + } + ngUUID, err := mcp.magnumManager.nodeGroupForNode(node) if err != nil { return nil, fmt.Errorf("error finding node group UUID for node %s: %v", node.Spec.ProviderID, err)