This commit is contained in:
Eliezer Croitoru 2024-01-27 19:58:22 +00:00
parent d7d7c96345
commit 1a1d6b8dfc
4 changed files with 16 additions and 0 deletions

View File

@ -18,3 +18,6 @@ common-tools:
upgrade:
bash upgrade.sh
clear-ctrlr:
bash reset-ctrlr.sh

View File

@ -1 +1,2 @@
* <https://www.learnlinux.tv/how-to-build-an-awesome-kubernetes-cluster-using-proxmox-virtual-environment/>
* <https://www.devopsschool.com/blog/how-to-delete-remove-clean-existing-corrupted-or-old-kubeadm-kubernetes-clusters-setup/>

3
initialize-k8s-ctrlr.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
kubeadm init --control-plane-endpoint=172.16.250.216 --node-name controller --pod-network-cidr=10.244.0.0/16

9
reset-ctrlr.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
kubeadm reset -f
apt purge -y -f kubeadm kubectl kubelet kubernetes-cni kube* --allow-change-held-packages
apt autoremove -y --allow-change-held-packages
rm -rf ~/.kube