https://github.com/imerica/pik3s
Ansible Playbook for Deploying K3s on Raspberry Pis.
https://github.com/imerica/pik3s
ansible-playbook automation configuration-management iot k3s k3s-cluster kubernetes raspberry-pi
Last synced: about 2 months ago
JSON representation
Ansible Playbook for Deploying K3s on Raspberry Pis.
- Host: GitHub
- URL: https://github.com/imerica/pik3s
- Owner: iMerica
- License: mit
- Created: 2019-10-13T23:18:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-07T01:18:17.000Z (over 6 years ago)
- Last Synced: 2025-03-25T04:52:36.835Z (over 1 year ago)
- Topics: ansible-playbook, automation, configuration-management, iot, k3s, k3s-cluster, kubernetes, raspberry-pi
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pi K3s
Ansible playbook for deploying kubernetes to cluster of Raspberry Pis. I personally use this on a cluster of
Raspberry Pi 4s, but earlier Raspberry Pis should work fine too.
# Requirements and Assumptions
- Latest Ansible (as of this writing)
- Raspberry Pis with SSH already enabled. (e.g `touch /boot/ssh` on all)
# Set up
- Clone this Repo and cd into the source.
- Update `./inventory` with your own IP addresses.
- Test the connection `ansible -m ping all`
- Apply the playbook `ansible-playbook main.yml`
## Optional
Connect to the cluster from your development computer
```
ssh @ sudo cat /etc/rancher/k3s/k3s.yaml > ~/.kube/pi_cluster.yml
export KUBECONFIG=$HOME/.kube/pi_cluster.yml
````
# FAQ
Q: I'm having trouble connecting to the cluster.
A: Update the ssh configuration as needed in `ansible.cfg`