convert all nodes to controlplanes and remove loadbalancer label
This commit is contained in:
parent
f2d73d6cc2
commit
0aa4e719a7
@ -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
|
||||||
|
4
talos/remove_node_label_patch.yaml
Normal file
4
talos/remove_node_label_patch.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
machine:
|
||||||
|
nodeLabels:
|
||||||
|
node.kubernetes.io/exclude-from-external-load-balancers:
|
||||||
|
$patch: delete
|
Loading…
x
Reference in New Issue
Block a user