Last active
September 4, 2022 10:27
-
-
Save alexellis/09b708a8ddeeb1aa07ec276cd8ab228a to your computer and use it in GitHub Desktop.
Multi-master / HA k3s for my Raspberry Pi cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| CH=latest | |
| echo Installing Server 1 | |
| k3sup install --user pi --ip 192.168.2.147 \ | |
| --k3s-channel $CH \ | |
| --cluster \ | |
| --print-command \ | |
| --skip-install | |
| echo Installing Server 2 | |
| k3sup join --user pi --ip 192.168.2.141 --server-ip 192.168.2.147 \ | |
| --k3s-channel $CH \ | |
| --server \ | |
| --print-command | |
| echo Installing Agent 1 | |
| k3sup join --user pi --ip 192.168.2.123 --server-ip 192.168.2.147 \ | |
| --k3s-channel $CH \ | |
| --print-command | |
| echo Installing Agent 2 | |
| k3sup join --user pi --ip 192.168.2.129 --server-ip 192.168.2.147 \ | |
| --k3s-channel $CH \ | |
| --print-command | |
| # More at https://k3sup.dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment