From bbfcc6cfe125e09e86fac6280cd462e885b8d903 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 10 Apr 2024 17:05:22 +0900 Subject: [PATCH] Add `make kubeadm-reset` Signed-off-by: Akihiro Suda --- Makefile | 5 +++++ README.md | 1 + 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index c6c53ce..171354e 100644 --- a/Makefile +++ b/Makefile @@ -64,6 +64,7 @@ help: @echo '# Debug' @echo 'make logs' @echo 'make shell' + @echo 'make kubeadm-reset' @echo 'make down-v' @echo 'kubectl taint nodes --all node-role.kubernetes.io/control-plane-' @@ -143,6 +144,10 @@ kubeadm-join: $(NODE_SHELL) /usernetes/join-command @echo "# Run 'make sync-external-ip' on the control plane" +.PHONY: kubeadm-reset +kubeadm-reset: + $(NODE_SHELL) kubeadm reset --force + .PHONY: install-flannel install-flannel: $(NODE_SHELL) kubectl apply -f https://github.com/flannel-io/flannel/releases/download/v0.24.4/kube-flannel.yml diff --git a/README.md b/README.md index 404a675..c9be371 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ make sync-external-ip # Debug make logs make shell +make kubeadm-reset make down-v kubectl taint nodes --all node-role.kubernetes.io/control-plane- ```