Commit e0e725
2024-01-08 21:58:00 Ralph Thesen: Added quick n dirty howto| /dev/null .. tasks/add a node.md | |
| @@ 0,0 1,26 @@ | |
| + | # Add a node |
| + | |
| + | 1. Open up [hetzners console](https://console.hetzner.cloud/) |
| + | 2. Select the project `v5.t3m4.net` |
| + | 3. Add server |
| + | - Location: `Falkenstein` |
| + | - Image: `Debian 12` |
| + | - Type: `Shared CPU`, `Arm64` |
| + | - Networking: `[X] Public IPv6`, Private Network: `t3m4-v5-network-1` |
| + | - .. |
| + | - Placement groups: `k8s.t3m4.net` |
| + | - Name: `nodeN` |
| + | 4. Create & buy |
| + | 5. Wait for the server to come up ... |
| + | 6. Open `ansible/hosts.ini` and add the server with the IP data of the Servers page to `[worker]` e.g. |
| + | ``` |
| + | node2 ansible_host=2a01:4f8:c013:1c49::2 internal_ip=10.1.0.6 |
| + | ``` |
| + | 7. Open the server > Rescue > Enable rescue & power cycle |
| + | 8. Wait for the server to come up |
| + | 9. Run `ansible-playbook -l $NODE install.yaml` the server will reboot afterwards |
| + | 10. Run `ansible-playbook -l ctrl0,$NODE site.yaml` this will unlock and install the node |
| + | 11. Check the node via ssh, especally if `/var/lib/longhorn` is mounted |
| + | 12. Check if the node is up and `Ready` in `kubectl get nodes` |
| + | 13. Update and run `system/node-labels-and-taints.sh` |
| + | 14. Run `kubectl label --overwrite node $NODE node.longhorn.io/create-default-disk=true` |
