mirror of https://github.com/k3s-io/k3s
Fix restore-from-backup.sh script
parent
1e5fa8fed5
commit
41b3db0fcc
|
@ -101,7 +101,7 @@ wait_for_cluster_healthy() {
|
||||||
# Wait until etcd and apiserver pods are down.
|
# Wait until etcd and apiserver pods are down.
|
||||||
wait_for_etcd_and_apiserver_down() {
|
wait_for_etcd_and_apiserver_down() {
|
||||||
for i in $(seq 120); do
|
for i in $(seq 120); do
|
||||||
etcd=$(docker ps | grep etcd | grep -v etcd-empty-dir | wc -l)
|
etcd=$(docker ps | grep etcd | grep -v etcd-empty-dir | grep -v etcd-monitor | wc -l)
|
||||||
apiserver=$(docker ps | grep apiserver | wc -l)
|
apiserver=$(docker ps | grep apiserver | wc -l)
|
||||||
# TODO: Theoretically it is possible, that apiserver and or etcd
|
# TODO: Theoretically it is possible, that apiserver and or etcd
|
||||||
# are currently down, but Kubelet is now restarting them and they
|
# are currently down, but Kubelet is now restarting them and they
|
||||||
|
|
Loading…
Reference in New Issue