Ansible Playbooks to deploy different Kubernetes cluster distributions, originally intended to be installed on Raspberry Pi's.
The following Kubernetes distributions can be deployed:
- K8s
- K3s
- minikube
Minimum Ansible requirements:
- ansible-base (2.10.0 or higher)
or
- ansible-core (2.11.0 or higher)
The following Ansible Collections are necessary:
- ansible.posix
- community.general
- community.kubernetes
Missing collections can be installed with the provided requirements.yml
file.
ansible-galaxy collection install -r requirements.yml
The target nodes need CentOS 7 as the operating system.
I prepare my Pi cluster with the playbook from this repository: https://github.com/TimGrt/prepare-rpi-hosts
Adjust the inventory file.
Execute playbook to install K8s:
ansible-playbook -i hosts k8s-install.yml
Execute playbook to install K3s:
ansible-playbook -i hosts k3s-install.yml
Execute playbook to install minikube:
ansible-playbook -i hosts minikube.yml
Created 2020 by Tim Grützmacher