From bbd382c667368a29d86dd058c844ed4599056acf Mon Sep 17 00:00:00 2001 From: Grant Hunter <5445379+grantdhunter@users.noreply.github.com> Date: Mon, 22 Sep 2025 20:01:59 -0600 Subject: [PATCH] update install instructions, update talos install version --- README.md | 6 ++++++ justfile | 12 +++++++++++- talos/machine_patch.yaml | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0795130..ef03bfc 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,12 @@ talosctl gen config fog https://192.168.1.43:6443 \ ``` ### Add node to talos cluster +1. Create an ISO USB +```sh +sudo dd if=metal-amd64.iso of=/dev/sdc bs=4M +``` +2. Start the machine with the USB. Once it has booted **REMOVE** the USB so that it doesn't get selected as an install location. +3. Apply config to install the OS to disk ```sh talosctl apply-config [--insecure] -n controlplane.yaml ``` diff --git a/justfile b/justfile index 6dd250f..fa37281 100644 --- a/justfile +++ b/justfile @@ -8,7 +8,17 @@ diff ARGS='': bws run 'helmfile diff --output dyff {{ARGS}}' cleanuppods: - kubectl get pods --no-headers | grep -v Running | awk '{print $1}' | xargs kubectl delete pod + #!/bin/bash + kubectl get pods --all-namespaces | grep -v Running | awk '{print $1, $2}' | tail -n +2 | while read namespace pod; do + kubectl delete pod "$pod" --namespace "$namespace" + done + +cleanupjobs: + #!/bin/bash + kubectl get jobs --all-namespaces | grep -v Running | awk '{print $1, $2}' | tail -n +2 | while read namespace job; do + kubectl delete job "$job" --namespace "$namespace" + done + pgrestart: kubectl patch postgrescluster/postgres --type merge --patch '{"spec":{"metadata":{"annotations":{"restarted":"'"$(date)"'"}}}}' diff --git a/talos/machine_patch.yaml b/talos/machine_patch.yaml index 5665c20..fa4579b 100644 --- a/talos/machine_patch.yaml +++ b/talos/machine_patch.yaml @@ -1,6 +1,6 @@ machine: install: - image: ghcr.io/siderolabs/installer:v1.9.5 + image: ghcr.io/siderolabs/installer:v1.11.1 kubelet: extraArgs: rotate-server-certificates: true