https://kubernetes.io/docs/setup/production-environment/container-runtimes/
- Spin up nodes on vmware/virtualbox with ubuntu/RHEL/CentOS, here one node is master and another one for node
- you can add multiple nodes to the masters
- Please update your master and node ip's in hosts file like below
[master]
10.110.16.178 ansible_ssh_user=admin ansible_ssh_pass=pass ansible_sudo_pass=pass ansible_ssh_common_args='-o StrictHostKeyChecking=no'
[node]
10.110.16.179 ansible_ssh_user=admin ansible_ssh_pass=pass ansible_sudo_pass=pass ansible_ssh_common_args='-o StrictHostKeyChecking=no'
- Provide container runtime to the script, Available runtimes are
- CRI-O
- Containerd
- Docker
Run the below command to Install Kubernetes cluster
bash setup.sh install
Run the below command to uninstall Kubernetes cluster
bash setup.sh uninstall