diff --git a/cmd/util.go b/cmd/util.go index 056b045..4ccddb2 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -505,6 +505,10 @@ func IsAKS(ctx context.Context, k8sClient kubernetes.Interface) (bool, error) { } node := nodes.Items[0] + labels := node.Labels + if _, exists := labels["kubernetes.azure.com/cluster"]; exists { + return true, nil + } if strings.HasPrefix(node.Spec.ProviderID, "azure://") { return true, nil