From ecc0060fba99a399c29456c2d71e340734d9d0e5 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Sat, 8 Nov 2025 03:50:31 +0100 Subject: [PATCH] Added README with some basic commands --- README.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3ff9619 --- /dev/null +++ b/README.md @@ -0,0 +1,67 @@ +# 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/: +```