# Talos To decrypt the secrets file: ``` git-crypt unlock ``` Generate the config files: ```bash talosctl gen config https://:6443 -f \ --with-secrets secrets.yaml \ --config-patch @ \ --config-patch-control-plane @ \ --install-image factory.talos.dev/metal-installer/: \ -o configs ``` Set TALOSCONFIG: ```bash export TALOSCONFIG=$(realpath configs/talosconfig) ``` Apply the configs for each node, use worker.yaml for worker nodes: ```bash talosctl apply-config --insecure --nodes --file configs/controlplane.yaml ``` Set endpoint to one of the nodes: ```bash talosctl config endpoint ``` Bootstrap Kubernetes: ```bash talosctl -n bootstrap ``` Set endpoint to control plane: ```bash talosctl config endpoint ``` Get kubeconfig and set KUBECONFIG: ```bash talosctl -n 192.168.1.100 kubeconfig $PWD/configs/kubeconfig export KUBECONFIG=$(realpath configs/kubeconfig) ``` For applying updated config to node: ```bash talosctl apply-config --nodes --file configs/controlplane.yaml ``` Upgrading talos or changing the schematic: ```bash talosctl upgrade --nodes --image factory.talos.dev/metal-installer/: ``` To upgrade kubernetes or inline manifests, first apply the updated controlplane configs, then run: ```bash talosctl upgrade-k8s ```