mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
Improve reliability of salt-minion on vagrant master
This commit is contained in:
@@ -199,6 +199,9 @@ function verify-cluster {
|
|||||||
local machine="master"
|
local machine="master"
|
||||||
local -a required_daemon=("salt-master" "salt-minion" "kubelet")
|
local -a required_daemon=("salt-master" "salt-minion" "kubelet")
|
||||||
local validated="1"
|
local validated="1"
|
||||||
|
# This is a hack, but sometimes the salt-minion gets stuck on the master, so we just restart it
|
||||||
|
# to ensure that users never wait forever
|
||||||
|
vagrant ssh "$machine" -c "sudo systemctl restart salt-minion"
|
||||||
until [[ "$validated" == "0" ]]; do
|
until [[ "$validated" == "0" ]]; do
|
||||||
validated="0"
|
validated="0"
|
||||||
local daemon
|
local daemon
|
||||||
|
Reference in New Issue
Block a user