mirror of
https://github.com/rancher/rke.git
synced 2025-09-12 21:24:00 +00:00
Restart Cattle agent pods and kubeapi auth pods
This commit is contained in:
committed by
Alena Prokharchyk
parent
f145eb39b4
commit
26d10514d8
@@ -32,6 +32,9 @@ const (
|
||||
KubeDNSAddonAppName = "kube-dns"
|
||||
KubeDNSAutoscalerAppName = "kube-dns-autoscaler"
|
||||
CoreDNSAutoscalerAppName = "coredns-autoscaler"
|
||||
KubeAPIAuthAppName = "kube-api-auth"
|
||||
CattleClusterAgentAppName = "cattle-cluster-agent"
|
||||
CattleAgentAppName = "cattle-agent"
|
||||
|
||||
CoreDNSProvider = "coredns"
|
||||
KubeDNSProvider = "kube-dns"
|
||||
|
@@ -494,6 +494,9 @@ func RestartClusterPods(ctx context.Context, kubeCluster *Cluster) error {
|
||||
fmt.Sprintf("%s=%s", KubeAppLabel, KubeDNSAddonAppName),
|
||||
fmt.Sprintf("%s=%s", KubeAppLabel, KubeDNSAutoscalerAppName),
|
||||
fmt.Sprintf("%s=%s", KubeAppLabel, CoreDNSAutoscalerAppName),
|
||||
fmt.Sprintf("%s=%s", AppLabel, KubeAPIAuthAppName),
|
||||
fmt.Sprintf("%s=%s", AppLabel, CattleClusterAgentAppName),
|
||||
fmt.Sprintf("%s=%s", AppLabel, CattleAgentAppName),
|
||||
}
|
||||
var errgrp errgroup.Group
|
||||
labelQueue := util.GetObjectQueue(labelsList)
|
||||
|
Reference in New Issue
Block a user