convert all nodes to controlplanes and remove loadbalancer label

This commit is contained in:
Grant 2025-02-03 20:17:23 -07:00
parent f2d73d6cc2
commit 0aa4e719a7
2 changed files with 7 additions and 4 deletions

View File

@ -18,13 +18,12 @@ bws secret get <talos-secret-id> -o json | jq .value --raw-output > talos/secret
talosctl gen config fog https://192.168.1.43:6443 \ talosctl gen config fog https://192.168.1.43:6443 \
--with-secrets talos/secrets.yaml \ --with-secrets talos/secrets.yaml \
--config-patch @talos/machine_patch.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 ### Add node to talos cluster
```sh ```sh
talosctl apply-config [--insecure] -n 192.168.1.38 --file talos/worker.yaml talosctl apply-config [--insecure] -n <ips> controlplane.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
``` ```
### Update context ### Update context
```sh ```sh

View File

@ -0,0 +1,4 @@
machine:
nodeLabels:
node.kubernetes.io/exclude-from-external-load-balancers:
$patch: delete