Skip to content

Latest commit

 

History

History

talos

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

talos

See talos: Getting Started and talhelper: Getting Started for the initial setup.

Steps

  1. Configure DHCP static map matching the talconf.yaml
  2. Boot machines off the Talos Linux image
  3. Remove the USB disk once its running in ram
  4. Environment should already be configured with
$ TALCONFIG=bootstrap/talos/clusterconfig/talosconfig

Generate the talos configuration

$ task --dir bootstrap/talos/ talhelper-genconfig

Verify disks

Make any last minute adjustments if needed based on USB disk ordering.

$ talosctl -n 10.10.100.1 disks --insecure

Apply configuration

$ 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

Kubernetes bootstrap

$ talosctl bootstrap --nodes 10.10.100.1 --endpoints 10.10.100.1 

Install kubeconfig:

$ talosctl  -n 10.10.100.1 kubeconfig

Verify Kubernetes health

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

Apply configuration to other nodes

$ talosctl apply-config --insecure -n 10.10.100.4 --file bootstrap/talos/clusterconfig/k8s-cluster-kube01.yaml

Maintenance

Update config

$ task --dir bootstrap/talos/ talhelper-updateconfig

Check manifests

$ talosctl get manifests -n 10.10.100.1

Reboot

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