From 0aa4e719a7f47b694d985b5209908a51c8695bdf Mon Sep 17 00:00:00 2001 From: Grant <5445379+grantdhunter@users.noreply.github.com> Date: Mon, 3 Feb 2025 20:17:23 -0700 Subject: [PATCH] convert all nodes to controlplanes and remove loadbalancer label --- README.md | 7 +++---- talos/remove_node_label_patch.yaml | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 talos/remove_node_label_patch.yaml diff --git a/README.md b/README.md index d7d5f0e..e341a6e 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,12 @@ bws secret get -o json | jq .value --raw-output > talos/secret talosctl gen config fog https://192.168.1.43:6443 \ --with-secrets talos/secrets.yaml \ --config-patch @talos/machine_patch.yaml \ - --config-patch @talos/cluster_patch.yaml + --config-patch-control-plane @talos/cluster_patch.yaml \ + --config-patch-control-plane @talos/remove_node_label_patch.yaml ``` ### Add node to talos cluster ```sh -talosctl apply-config [--insecure] -n 192.168.1.38 --file talos/worker.yaml -talosctl apply-config [--insecure] -n 192.168.1.39 --file talos/worker.yaml -talosctl apply-config [--insecure] -n 192.168.1.43 --file talos/controlplane.yaml +talosctl apply-config [--insecure] -n controlplane.yaml ``` ### Update context ```sh diff --git a/talos/remove_node_label_patch.yaml b/talos/remove_node_label_patch.yaml new file mode 100644 index 0000000..87520f7 --- /dev/null +++ b/talos/remove_node_label_patch.yaml @@ -0,0 +1,4 @@ +machine: + nodeLabels: + node.kubernetes.io/exclude-from-external-load-balancers: + $patch: delete