diff --git a/pkg/analyze/distribution.go b/pkg/analyze/distribution.go index 09be8ea6..18e937a5 100644 --- a/pkg/analyze/distribution.go +++ b/pkg/analyze/distribution.go @@ -73,6 +73,9 @@ func ParseNodesForProviders(nodes []corev1.Node) (providers, string) { if k == "node-role.kubernetes.io/master" { foundMaster = true } + if k == "node-role.kubernetes.io/control-plane" { + foundMaster = true + } if k == "kubernetes.azure.com/role" { foundProviders.aks = true stringProvider = "aks" diff --git a/pkg/collect/copy_from_host.go b/pkg/collect/copy_from_host.go index f40230a8..3ead703c 100644 --- a/pkg/collect/copy_from_host.go +++ b/pkg/collect/copy_from_host.go @@ -137,6 +137,11 @@ func copyFromHostCreateDaemonSet(ctx context.Context, client kubernetes.Interfac Operator: "Exists", Effect: "NoSchedule", }, + { + Key: "node-role.kubernetes.io/control-plane", + Operator: "Exists", + Effect: "NoSchedule", + }, }, Volumes: []corev1.Volume{ { diff --git a/pkg/collect/run_pod.go b/pkg/collect/run_pod.go index 171dcbb5..1a6ef7a1 100644 --- a/pkg/collect/run_pod.go +++ b/pkg/collect/run_pod.go @@ -69,6 +69,11 @@ func RunPodsReadyNodes(ctx context.Context, client v1.CoreV1Interface, opts RunP Operator: "Exists", Effect: "NoSchedule", }, + { + Key: "node-role.kubernetes.io/control-plane", + Operator: "Exists", + Effect: "NoSchedule", + }, }, }, }