See talos: Getting Started and talhelper: Getting Started for the initial setup.
- Configure DHCP static map matching the
talconf.yaml
- Boot machines off the Talos Linux image
- Remove the USB disk once its running in ram
- Environment should already be configured with
$ TALCONFIG=bootstrap/talos/clusterconfig/talosconfig
$ task --dir bootstrap/talos/ talhelper-genconfig
Make any last minute adjustments if needed based on USB disk ordering.
$ talosctl -n 10.10.100.1 disks --insecure
$ talosctl apply-config --insecure -n 10.10.100.1 --file bootstrap/talos/clusterconfig/k8s-cluster-kapi01.yaml
$ talosctl apply-config --insecure -n 10.10.100.2 --file bootstrap/talos/clusterconfig/k8s-cluster-kapi02.yaml
$ talosctl apply-config --insecure -n 10.10.100.3 --file bootstrap/talos/clusterconfig/k8s-cluster-kapi03.yaml
$ talosctl apply-config --insecure -n 10.10.100.4 --file bootstrap/talos/clusterconfig/k8s-cluster-kube01.yaml
$ talosctl bootstrap --nodes 10.10.100.1 --endpoints 10.10.100.1
Install kubeconfig:
$ talosctl -n 10.10.100.1 kubeconfig
If load balancer is not up, then need to manually modify the config to point to a single endpoint.
$ kubectl get nodes -A
NAME STATUS ROLES AGE VERSION
kapi01 Ready control-plane 117s v1.29.11
kapi02 Ready control-plane 97s v1.29.11
kapi03 Ready control-plane 115s v1.29.11
$ talosctl apply-config --insecure -n 10.10.100.4 --file bootstrap/talos/clusterconfig/k8s-cluster-kube01.yaml
$ task --dir bootstrap/talos/ talhelper-updateconfig
$ talosctl get manifests -n 10.10.100.1
This will reboot all nodes:
$ talosctl reboot
...
watching nodes: [10.10.100.1 10.10.100.2 10.10.100.3]
* 10.10.100.1: post check passed
* 10.10.100.2: post check passed
* 10.10.100.3: post check passed