Skip to content

aerOS-Project/K8s-installation-scripts

Repository files navigation

Kubernetes installation scripts

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:

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

How to use

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.

Control plane node

Use CPLANE mode

./kubernetes-1.32.sh -t CPLANE -c cilium -p "10.216.0.0/16"

Worker nodes

Use WORKER mode to install the needed tools (prerequirements, kubeadm, containerd, ...):

./kubernetes-1.32.sh -t WORKER

Then, 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

About

Scripts to install Kubernetes clusters

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages