Helmut Hoffer von Ankershoffen experimenting with auto-provisioned RPi cluster running K8S on bare-metal
ceil
: Auto-provisioned RPi cluster running K8S on bare-metalEnter make help
to see available commands.
Why the name? intval(ceil(M_PI)) === 4
which is the number of k8s nodes of the ceil cluster - flowers to mlande for gifting the name.
See branch max for the Mini PC (amd64) variant.
Author: Helmut Hoffer von Ankershoffen né Oertel
make
registry:2
ceil-router
PiWatch
to react more fine granular to specific K8S events.tpl
filesmake
and kubectl
(GitOps in second step)kadm
.tpl
, create a copy in the same directory without said suffix and enter specifics where invited by capital lettersmake prepare-mac
make pull-image
make {router,one,two,three,four}-provision
ceil-router
on your home or company WiFi router with IP address 192.168.0.100
- it will register as ceil-router
at your WiFi router11.0.0.0
with 192.168.0.100
as gateway in your company or home wifi router - if this is not achievable use make workstation-route-add
to add a route on your workstation.1194
(or whatever you configured in router/roles/vpn/defaults/main.yml
) to 192.168.0.100
192.168.0.100
as the first nameserver for the (WiFi) connection of your workstation using system settingsceil-router
to pickup its IP address via make router-reboot
- it will register via ZeroConf/Avahi on your workstation as ceil-router.local
make router-check-ip
if the IP address has been picked upmake router-setup
ceil-{one,two,three,four}.dev
) have picked up their designated IP addresses from the router in the range 11.0.0.101
to 11.0.0.104
: make k8s-check-ip
Notes:
ceil-router.local
in your network. You can check by ssh'ing into the router via make router-ssh
11.0.0.[0-128]
(11/25
) the K8S nodes will life in and act as their DHCP and DNS servervpn.ceil.pro
via DDNSmake k8s-check-ip
make {one,two,three,four}-ssh
nslookup ceil-{one,two,three.four}.dev
works but ping ceil-{one,two,three.four}.dev
does not, reestablish the (WiFi) connection of your workstationmake router-traffic
make setup
to setup K8S inc. persistence and deploy everything at once - takes ca. 45 minutes.Notes:
ceil-one
is set up as k8s masterceil-two
to ceil-four
but not ceil-one
Alternatively you can execute the setup and deploy steps one-by-one as described below
make k8s-proxy
make nodes-show
make pods-show
make k8s-dashboard-bearer-token-show
make k8s-dashboard-open
make traefik-ui-open
make httpd-open
make prometheus-open
make grafana-open
Notes:
workstation/etc/hosts
to /etc/hosts
of your workstation for steps 6 to 9make k8s-setup
.Notes:
ceil-one
is set up as k8s masterceil-two
to ceil-four
but not ceil-one
make all-deploy
or deploy step by step as documented below.ngrok-delete
. Execute make help
to see all commands.make all-delete
to delete all deployments at oncemake k8s-remove
.make teardown
to delete all deployments and remove K8S.