prepare

# create output directory
> mkdir _out/

# get install iso
> curl -OL \
  https://github.com/siderolabs/talos/releases/download/v1.0.3/talos-amd64.iso

> cp talos-amd64.iso /var/lib/libvirt/images/

on virt-manager

  • choose talos-amd64.iso
  • OS = ubuntu-20.04
  • disk space 25gb
  • network = default
  • start machine
  • pick up ip address from master and worker nodes
# replace /dev/sda with /dev/vda
> sed -i 's\/dev/sda\/dev/vda\g' \
  _out/controlplane.yaml \
  _out/worker.yaml

# apply config for master
> talosctl apply-config \
  --insecure --nodes $CONTROL_PLANE_IP \
  --file _out/controlplane.yaml

# apply config for worker
> talosctl apply-config \
  --insecure --nodes $WORKER_IP \
  --file _out/worker.yaml

> export TALOSCONFIG="_out/talosconfig"
> talosctl config endpoint $CONTROL_PLANE_IP
> talosctl config node $CONTROL_PLANE_IP
> talosctl bootstrap
> talosctl kubeconfig .
> kubectl get nodes