Skip to content

Basic installation and configuration of Kubernetes on Raspberry Pi via Ansible

Notifications You must be signed in to change notification settings

stephenpc/k8s-raspberry-pi

Repository files navigation

k8s-raspberry-pi

Automated Installation and Configuration of Kubernetes (K8s) on Raspberry Pi

Prerequisites

Notes

  • Tested using MacOS Big Sur as the Ansible control machine, with Python 3.9
  • This may work with other versions of Ubuntu, but I have only tested on Ubuntu 20.04.2 LTS
  • I defaulted to Flannel as the CNI plugin, but you can override this with the pod_network_yaml variable when running the kube_cluster_config.yml playbook

Directions

  1. Clone this repository to your computer
  2. Update inventory/hosts with any changes you'd like to make to node names and IPs for your Raspberry Pis
  3. Run the installation playbook, overriding any variables specified in vars, if you need to
    ansible-playbook -i inventory kube_cluster_install.yml -v
    
  4. Run the configuration playbook, which will initialize the control plane and join nodes to the cluster
    ansible-playbook -i inventory kube_cluster_config.yml -v
    
  5. Verify that the cluster is healthy
    ansible-playbook -i inventory kube_cluster_verify.yml -v
    

Special Thanks

The Ansible playbooks were based on these posts:

About

Basic installation and configuration of Kubernetes on Raspberry Pi via Ansible

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages