Skip to content

Ansible Playbook to deploy K8s or K3s on arm-based system

Notifications You must be signed in to change notification settings

TimGrt/kubernetes-installation

Repository files navigation

Kubernetes Installation with kubeadm

Ansible Playbooks to deploy different Kubernetes cluster distributions, originally intended to be installed on Raspberry Pi's.

Ansible Lint CodeFactor

The following Kubernetes distributions can be deployed:

  • K8s
  • K3s
  • minikube

Requirements

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

Execution

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

Author

Created 2020 by Tim Grützmacher

About

Ansible Playbook to deploy K8s or K3s on arm-based system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages