generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
100 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
kill $(cat <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-controller-manager.pid) | ||
rm <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-controller-manager.pid | ||
kill $(cat <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-scheduler.pid) | ||
rm <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-scheduler.pid | ||
kill $(cat <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kwok-controller.pid) | ||
rm <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kwok-controller.pid | ||
kill $(cat <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-apiserver.pid) | ||
rm <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-apiserver.pid | ||
kill $(cat <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/etcd.pid) | ||
rm <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/etcd.pid | ||
kill $(cat <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-apiserver.pid) | ||
rm <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-apiserver.pid | ||
rm -rf <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd-data | ||
# Download https://github.com/etcd-io/etcd/releases/download/v3.5.9/etcd-v3.5.9-<OS>-<ARCH>.<TAR> and extract etcdctl to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/etcdctl | ||
ETCDCTL_API=3 etcdctl --endpoints 127.0.0.1:32765 snapshot restore ./snapshot-empty-<CLUSTER_NAME> --data-dir <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd-data | ||
rm -rf <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd | ||
mv <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd-data <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd | ||
kill $(cat <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kwok-controller.pid) | ||
rm <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kwok-controller.pid | ||
kill $(cat <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-controller-manager.pid) | ||
rm <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-controller-manager.pid | ||
kill $(cat <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-scheduler.pid) | ||
rm <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/pids/kube-scheduler.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Download https://github.com/etcd-io/etcd/releases/download/v3.5.9/etcd-v3.5.9-<OS>-<ARCH>.<TAR> and extract etcdctl to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/etcdctl | ||
ETCDCTL_API=3 etcdctl snapshot restore ./snapshot-empty-<CLUSTER_NAME> --data-dir <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd-data | ||
docker stop kwok-<CLUSTER_NAME>-kube-controller-manager --time=0 | ||
docker stop kwok-<CLUSTER_NAME>-kube-scheduler --time=0 | ||
docker stop kwok-<CLUSTER_NAME>-kwok-controller --time=0 | ||
docker stop kwok-<CLUSTER_NAME>-kube-apiserver --time=0 | ||
docker stop kwok-<CLUSTER_NAME>-etcd --time=0 | ||
docker stop kwok-<CLUSTER_NAME>-kube-apiserver --time=0 | ||
docker cp <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd-data kwok-<CLUSTER_NAME>-etcd:/ | ||
docker start kwok-<CLUSTER_NAME>-etcd | ||
docker start kwok-<CLUSTER_NAME>-kube-apiserver | ||
docker stop kwok-<CLUSTER_NAME>-kwok-controller --time=0 | ||
docker start kwok-<CLUSTER_NAME>-kwok-controller | ||
docker stop kwok-<CLUSTER_NAME>-kube-controller-manager --time=0 | ||
docker start kwok-<CLUSTER_NAME>-kube-controller-manager | ||
docker stop kwok-<CLUSTER_NAME>-kube-scheduler --time=0 | ||
docker start kwok-<CLUSTER_NAME>-kube-scheduler | ||
docker start kwok-<CLUSTER_NAME>-kwok-controller | ||
rm -rf <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Download https://github.com/etcd-io/etcd/releases/download/v3.5.9/etcd-v3.5.9-<OS>-<ARCH>.<TAR> and extract etcdctl to <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/bin/etcdctl | ||
ETCDCTL_API=3 etcdctl snapshot restore ./snapshot-empty-<CLUSTER_NAME> --data-dir <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd-data | ||
podman stop kwok-<CLUSTER_NAME>-kube-controller-manager --time=0 | ||
podman stop kwok-<CLUSTER_NAME>-kube-scheduler --time=0 | ||
podman stop kwok-<CLUSTER_NAME>-kwok-controller --time=0 | ||
podman stop kwok-<CLUSTER_NAME>-kube-apiserver --time=0 | ||
podman stop kwok-<CLUSTER_NAME>-etcd --time=0 | ||
podman stop kwok-<CLUSTER_NAME>-kube-apiserver --time=0 | ||
podman cp <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd-data kwok-<CLUSTER_NAME>-etcd:/ | ||
podman start kwok-<CLUSTER_NAME>-etcd | ||
podman start kwok-<CLUSTER_NAME>-kube-apiserver | ||
podman stop kwok-<CLUSTER_NAME>-kwok-controller --time=0 | ||
podman start kwok-<CLUSTER_NAME>-kwok-controller | ||
podman stop kwok-<CLUSTER_NAME>-kube-controller-manager --time=0 | ||
podman start kwok-<CLUSTER_NAME>-kube-controller-manager | ||
podman stop kwok-<CLUSTER_NAME>-kube-scheduler --time=0 | ||
podman start kwok-<CLUSTER_NAME>-kube-scheduler | ||
podman start kwok-<CLUSTER_NAME>-kwok-controller | ||
rm -rf <ROOT_DIR>/workdir/clusters/<CLUSTER_NAME>/etcd-data |