configure cluster

This commit is contained in:
2025-01-27 20:22:18 -05:00
parent 286ae5375c
commit 6ebd1bf202
17 changed files with 929 additions and 457 deletions

View File

@@ -13,6 +13,7 @@ scp -r * root@10.10.10.10:/etc/nixos
ls -l /dev/disk/by-id
# Partition Disk
# WARNING: This will destroy all data on the disk(s)
sudo nix \
--experimental-features "nix-command flakes" \
run github:nix-community/disko -- \
@@ -33,7 +34,7 @@ sudo reboot
## Copy Config Back to Host
```bash
scp -r * nixos@10.10.10.10:/etc/nixos
scp -r * nixos@10.0.20.201:/etc/nixos
```
## Rebuild NixOS
@@ -52,10 +53,14 @@ sudo nixos-install --flake /etc/nixos#lin-va-rke1
cat /var/lib/rancher/rke2/server/node-token
# Deploy Following Nodes
echo "<TOKEN>" > ./k8s/rke2-token
echo "<TOKEN>" > rke2-token
sudo nixos-install --flake /etc/nixos#lin-va-rke2
```
## TODO
## Notes
OpenEBS DiskPool Configuration not being applied. Likely need to consolidate RKE2 config, generate DiskPool config in complete, then apply.
## Kasten Port Forward
```bash
kubectl port-forward -n kasten svc/gateway 8000:80
```