A set of bash scripts to install Kubernetes clusters, which installs containerd as container runtime for the nodes. Available K8s versions:
The script also installs by default these tools:
- Containerd as container runtime
- Helm
- OpenEBS to manage storage (PV, PVCs, ...) in the cluster
- Prometheus stack (through the kube-prometheus-stack Helm chart) to enable monitoring in the cluster.
A script is also included to uninstall K8s stuff on nodes and also at cluster level: uninstall-k8s.sh
And a file with some commands to delete failed pods using kubectl to clean the cluster: delete-failed.pods.sh
The script requires root privileges.
Available options:
- t: type of Kubernetes' node (WORKER or CPLANE)
- p: (only in CPLANE mode) Pod CIDR Network
- c: (only in CPLANE mode) cluster CNI (calico, cilium or flannel). Flannel is installed by default, but it's recommended to install Cilium.
Use CPLANE mode
./kubernetes-1.32.sh -t CPLANE -c cilium -p "10.216.0.0/16"Use WORKER mode to install the needed tools (prerequirements, kubeadm, containerd, ...):
./kubernetes-1.32.sh -t WORKERThen, run the proper kubectl join command. It can be generated by running this command in the K8s control plane machine:
kubeadm token create --print-join-command