Обновлены пути к файлам конфигурации в README.md для talosctl.
This commit is contained in:
@@ -95,7 +95,7 @@ rm ~/.talos/config
|
||||
эту часть делает утилита talostpl
|
||||
|
||||
```bash
|
||||
talosctl gen secrets -o config/secrets.yaml
|
||||
talosctl gen secrets -o secrets.yaml
|
||||
|
||||
talosctl gen config --kubernetes-version 1.33.2 --with-secrets secrets.yaml talos-demo https://192.168.23.57:6443 --config-patch @patch.yaml
|
||||
|
||||
@@ -109,11 +109,11 @@ talosctl machineconfig patch worker.yaml --patch @worker2.patch --output worker2
|
||||
talosctl apply-config --insecure -n 192.168.23.57 --file cp1.yaml
|
||||
talosctl bootstrap --nodes 192.168.23.57 --endpoints 192.168.23.57 --talosconfig=talosconfig
|
||||
|
||||
# talosctl apply-config --insecure -n 192.168.23.52 --file config/cp2.yaml
|
||||
# talosctl apply-config --insecure -n 192.168.23.53 --file config/cp3.yaml
|
||||
# talosctl apply-config --insecure -n 192.168.23.52 --file cp2.yaml
|
||||
# talosctl apply-config --insecure -n 192.168.23.53 --file cp3.yaml
|
||||
|
||||
talosctl apply-config --insecure -n 192.168.23.63 --file config/worker1.yaml
|
||||
talosctl apply-config --insecure -n 192.168.23.64 --file config/worker2.yaml
|
||||
talosctl apply-config --insecure -n 192.168.23.63 --file worker1.yaml
|
||||
talosctl apply-config --insecure -n 192.168.23.64 --file worker2.yaml
|
||||
|
||||
talosctl kubeconfig ~/.kube/talos-demo.yaml --nodes 192.168.23.57 --endpoints 192.168.23.57 --talosconfig talosconfig
|
||||
```
|
||||
@@ -144,22 +144,22 @@ kubectl apply -f cilium/l2-announcement-policy.yaml
|
||||
|
||||
```bash
|
||||
talosctl --talosconfig talosconfig apply-config -n 192.168.23.57 --file cp1.yaml
|
||||
# talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.52 --file config/cp2.yaml
|
||||
# talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.53 --file config/cp3.yaml
|
||||
# talosctl --talosconfig talosconfig apply-config -n 192.168.23.52 --file cp2.yaml
|
||||
# talosctl --talosconfig talosconfig apply-config -n 192.168.23.53 --file cp3.yaml
|
||||
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.59 --file config/worker1.yaml
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.58 --file config/worker2.yaml
|
||||
talosctl --talosconfig talosconfig apply-config -n 192.168.23.59 --file worker1.yaml
|
||||
talosctl --talosconfig talosconfig apply-config -n 192.168.23.58 --file worker2.yaml
|
||||
```
|
||||
|
||||
## Re-Apply configs and reboot
|
||||
|
||||
```bash
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.57 --file config/cp1.yaml --mode=reboot
|
||||
# talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.52 --file config/cp2.yaml --mode=reboot
|
||||
# talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.53 --file config/cp3.yaml --mode=reboot
|
||||
talosctl --talosconfig talosconfig apply-config -n 192.168.23.57 --file cp1.yaml --mode=reboot
|
||||
# talosctl --talosconfig talosconfig apply-config -n 192.168.23.52 --file cp2.yaml --mode=reboot
|
||||
# talosctl --talosconfig talosconfig apply-config -n 192.168.23.53 --file cp3.yaml --mode=reboot
|
||||
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.59 --file config/worker1.yaml --mode=reboot
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.58 --file config/worker2.yaml --mode=reboot
|
||||
talosctl --talosconfig talosconfig apply-config -n 192.168.23.59 --file worker1.yaml --mode=reboot
|
||||
talosctl --talosconfig talosconfig apply-config -n 192.168.23.58 --file worker2.yaml --mode=reboot
|
||||
```
|
||||
|
||||
## Upgrade
|
||||
@@ -167,16 +167,16 @@ talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.58 --file c
|
||||
```bash
|
||||
IMAGE=factory.talos.dev/metal-installer/956b9107edd250304169d2e7a765cdd4e0c31f9097036e2e113b042e6c01bb98:v1.10.4
|
||||
|
||||
talosctl --talosconfig config/talosconfig upgrade --nodes 192.168.23.54 --image ${IMAGE}
|
||||
# talosctl --talosconfig config/talosconfig upgrade --nodes 192.168.23.52 --image ${IMAGE}
|
||||
# talosctl --talosconfig config/talosconfig upgrade --nodes 192.168.23.53 --image ${IMAGE}
|
||||
talosctl --talosconfig talosconfig upgrade --nodes 192.168.23.54 --image ${IMAGE}
|
||||
# talosctl --talosconfig talosconfig upgrade --nodes 192.168.23.52 --image ${IMAGE}
|
||||
# talosctl --talosconfig talosconfig upgrade --nodes 192.168.23.53 --image ${IMAGE}
|
||||
|
||||
talosctl --talosconfig config/talosconfig upgrade --nodes 192.168.23.55 --image ${IMAGE}
|
||||
talosctl --talosconfig config/talosconfig upgrade --nodes 192.168.23.56 --image ${IMAGE}
|
||||
talosctl --talosconfig talosconfig upgrade --nodes 192.168.23.55 --image ${IMAGE}
|
||||
talosctl --talosconfig talosconfig upgrade --nodes 192.168.23.56 --image ${IMAGE}
|
||||
```
|
||||
|
||||
## Upgrade k8s
|
||||
|
||||
```bash
|
||||
talosctl --nodes 192.168.23.100 --talosconfig config/talosconfig upgrade-k8s --to 1.33.2
|
||||
talosctl --nodes 192.168.23.100 --talosconfig talosconfig upgrade-k8s --to 1.33.2
|
||||
```
|
||||
|
Reference in New Issue
Block a user