description |
---|
WORK IN PROGRESS | Infrastructure-as-Code Raspberry Pi 4 multi-node micro-Kubernetes Cluster |
Previously the development, deployment and maintenence of highly available services provided through a traditional web server required
__
Documentation and configuration for my attempt to bootstrap and maintain my home-lab microk8s cluster with MaaS, Ansible, Juju, Flux, and Cloudflared. The goal is to have a secure-bv-default globally accessible live dev/production environment and server.
PiKVM v2:
- Raspberry Pi 4 Model B 4GB
- AIMOS 8-port HDMI USB-C KVM Switch
MaaS Controllers:
- Lenovo Thinkpad T500 | Ubuntu Server 20.04.4 LTS (Linux 5.8)
- Acer Swift 3 | Ubuntu Desktop 18.04.6 LTS (Linux 5.4)
MaaS Server Nodes:
- 5x Raspberry Pi 4 8GB
- 5x UASP compatible NVMe M.2 to USB 3.1 Type-C/A SSD Enclosure
- 5x 512GB Western Digital Blue NVMe SSD
- 5x USB Type-A 3.1 Sandisk 64GB USB Flash Drives
Other relevant (network) hardware:
- 8 port Netgear GS108Tv3 Smart Switch
- 2x TP-LINK Archer C7 AC1750 v5 OpenWRT-21.02
- 1x Raspberry Pi 3B+ 4GB OpenWRT-21.02
1. This discourse link is a fully compiled up to date in detail guide on bootstrapping MaaS with a cluster of Raspberry Pis provided directly courtesy of Canonical (Ubuntu) software engineers and all other MaaS contributors.
2. Ansible role microk8s
3. Ansible role seaweedfs operator
- install cert manager helm to install seaweedfs operator
- deploy seaweedfs config to operator
3. Ansible role cloudflared
4. Ansible role gitlab
5. Ansible role gitpod\
Install MaaS and configure
Use MaaS to provision and deploy RPI cluster
https://github.com/papanito/ansible-role-cloudflared
https://github.com/IanTeda/ansible-microk8s
https://github.com/geerlingguy/ansible-role-gitlab
https://github.com/gitpod-io/gitpod/tree/main/install/installer
https://developers.cloudflare.com/cloudflare-one/tutorials/many-cfd-one-tunnel/ -> make into Ansible role
Add bash aliases and flux autocomplete
\