diff --git a/cmd/sealer/cmd/utils/cluster.go b/cmd/sealer/cmd/utils/cluster.go index f9f4e8a3134..6092cd48aaf 100644 --- a/cmd/sealer/cmd/utils/cluster.go +++ b/cmd/sealer/cmd/utils/cluster.go @@ -227,7 +227,7 @@ func GetCurrentCluster(client *k8s.Client) (*v2.Cluster, error) { var nodeIPList []net.IP for _, node := range nodes.Items { - if _, ok := node.Labels["node-role.kubernetes.io/agent"]; ok { + if _, ok := node.Labels["node-role.kubernetes.io/agent"]; ok || node.Labels["kubernetes.io/role"] == "agent" { continue } addr := getNodeAddress(node)