Обновлены инструкции в README.md, изменены пути к файлам конфигурации, изменен CIDR в ippool.yaml и IP-адрес в values.yaml.

This commit is contained in:
2025-07-02 22:48:03 +07:00
parent 961bb99beb
commit dd01dc1119
5 changed files with 22 additions and 18 deletions

View File

@@ -92,22 +92,22 @@ rm ~/.talos/config
## Генерация и установка
эту часть делает ренератор generator.sh
эту часть делает утилита talostpl
```bash
talosctl gen secrets -o config/secrets.yaml
talosctl gen config --kubernetes-version 1.33.2 --with-secrets config/secrets.yaml talos-demo https://192.168.23.57:6443 --config-patch @patch.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
talosctl machineconfig patch config/controlplane.yaml --patch @cp1.patch --output config/cp1.yaml
talosctl machineconfig patch config/controlplane.yaml --patch @cp2.patch --output config/cp2.yaml
talosctl machineconfig patch config/controlplane.yaml --patch @cp3.patch --output config/cp3.yaml
talosctl machineconfig patch controlplane.yaml --patch @cp1.patch --output cp1.yaml
talosctl machineconfig patch controlplane.yaml --patch @cp2.patch --output cp2.yaml
talosctl machineconfig patch controlplane.yaml --patch @cp3.patch --output cp3.yaml
talosctl machineconfig patch config/worker.yaml --patch @worker1.patch --output config/worker1.yaml
talosctl machineconfig patch config/worker.yaml --patch @worker2.patch --output config/worker2.yaml
talosctl machineconfig patch worker.yaml --patch @worker1.patch --output worker1.yaml
talosctl machineconfig patch worker.yaml --patch @worker2.patch --output worker2.yaml
talosctl apply-config --insecure -n 192.168.23.57 --file config/cp1.yaml
talosctl bootstrap --nodes 192.168.23.57 --endpoints 192.168.23.57 --talosconfig=config/talosconfig
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
@@ -115,7 +115,7 @@ talosctl bootstrap --nodes 192.168.23.57 --endpoints 192.168.23.57 --talosconfig
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 kubeconfig ~/.kube/talos-demo.yaml --nodes 192.168.23.57 --endpoints 192.168.23.57 --talosconfig config/talosconfig
talosctl kubeconfig ~/.kube/talos-demo.yaml --nodes 192.168.23.57 --endpoints 192.168.23.57 --talosconfig talosconfig
```
## Cilium
@@ -143,7 +143,7 @@ kubectl apply -f cilium/l2-announcement-policy.yaml
## Re-Apply configs
```bash
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.57 --file config/cp1.yaml
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

View File

@@ -4,4 +4,4 @@ metadata:
name: pool
spec:
blocks:
- cidr: 192.168.23.24/32
- cidr: 192.168.23.22/32

View File

@@ -23,7 +23,7 @@ cgroup:
autoMount:
enabled: false
hostRoot: /sys/fs/cgroup
k8sServiceHost: 192.168.23.79
k8sServiceHost: 192.168.23.21
k8sServicePort: 6443
l2announcements:
enabled: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 KiB

After

Width:  |  Height:  |  Size: 174 KiB