Blame

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