mirror of https://github.com/k3s-io/k3s
Add '-all' flag to apply to inactive units
Signed-off-by: Manuel Buil <mbuil@suse.com>pull/7567/head
parent
2b24c9917c
commit
290f67c939
|
@ -419,7 +419,7 @@ func ParsePods(kubeConfig string, print bool) ([]Pod, error) {
|
|||
// RestartCluster restarts the k3s service on each node given
|
||||
func RestartCluster(nodeNames []string) error {
|
||||
for _, nodeName := range nodeNames {
|
||||
cmd := "sudo systemctl restart k3s*"
|
||||
cmd := "sudo systemctl restart k3s* --all"
|
||||
if _, err := RunCmdOnNode(cmd, nodeName); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue