fix: Adds postinstall connection information.

This commit is contained in:
greysoh 2024-07-19 14:16:41 -04:00
parent bfcbc9f79a
commit f84a6f3754
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37

View file

@ -17,6 +17,7 @@ Currently, I cannot recommend that you use this setup in production yet. I have
6. Create VM(s) that use VirtIO hard drives (i.e drives with `/dev/vda`), and the ISO set to the NixOS installer.
7. Boot the installer, and set the password of the `nixos` user to something so you can SSH in to start the installer.
8. With the environment variable `NIX_INSTALL_PATH` set to the nix file you want to use for installation (i.e `kitteh-node-1/agent.nix`), run `./install.sh IP_ADDRESS_FOR_VM_HERE`. This will take about 20 minutes on my setup. You are highly encouraged to run multiple installations in parallel.
9. When the installation is done (it will autoreboot), you can now connect using your SSH key to any of the nodes with the user `clusteradm`. The default password is `1234`. Be sure to change this!
### Kubernetes setup
1. SSH into any of the nodes. (i.e `ssh clusteradm@kitteh-node-2-k3s-server`)
2. As root, grab `/etc/rancher/k3s/k3s.yaml`, and copy it to wherever you store your k3s configurations (on macOS, this is `~/.kube/config`)