An interactive script for bootstrapping Kubernetes clusters on Talos OS.
Example: bootstrap full-feature Kubernetes cluster in 5 minutes:
Install dependencies:
talosctl
(>=1.6.0)dialog
nmap
Install talos-bootstrap:
curl -LO https://github.com/aenix-io/talos-bootstrap/raw/master/talos-bootstrap
chmod +x ./talos-bootstrap
sudo mv ./talos-bootstrap /usr/local/bin/talos-bootstrap
- Boot your nodes with Talos in maintenance mode.
(booting from ISO or PXE using matchbox is the best option) - Create a directory for holding your cluster configuration.
- Run
talos-bootstrap
command for every node in your cluster.
USAGE:
talos-bootstrap ACTION [OPTIONS]
ACTIONS:
help Show this help message.
install Setup a node for a new or existing cluster.
upgrade Upgrade a node in an existing cluster.
reset Reset and remove a node from an existing cluster.
reboot Reboot a node.
shutdown Shutdown a node.
dashboard Open dashboard for a node.
OPTIONS:
-n, --node <address> Node address
You can specify your customizations in one of the following files:
patch.yaml
- common settings used for all nodes.patch-controlplane.yaml
- settings used for controlplane nodes onlypatch-worker.yaml
- settings used for worker nodes only
Read the Configuration Patches documentation for more details.
Looking for enhanced, non-interactive version of talos-bootstrap?
Take a look at Talm project.
Andrei Kvapil kvapss@gmail.com
Licensed under Apache 2.0 License