Добавлен новый параметр dm-thin-pool в скрипт generate.sh, обновлены IP-адреса в README.md и изменен интервал обновления в piraeus.yaml с 5 минут на 3 минуты.
This commit is contained in:
7 files changed
+30
-28
No files matched your search
+22
-22
@@ -21,7 +21,7 @@ ISO-образы для архитектур amd64 и arm64 доступны н
|
||||
```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.54:6443 --config-patch @patch.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 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
|
||||
@@ -34,16 +34,16 @@ talosctl machineconfig patch config/worker.yaml --patch @worker2.patch --output
|
||||
эту часть делаем мы
|
||||
|
||||
```bash
|
||||
talosctl apply-config --insecure -n 192.168.23.54 --file config/cp1.yaml
|
||||
talosctl bootstrap --nodes 192.168.23.54 --endpoints 192.168.23.54 --talosconfig=config/talosconfig
|
||||
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.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 config/cp2.yaml
|
||||
# talosctl apply-config --insecure -n 192.168.23.53 --file config/cp3.yaml
|
||||
|
||||
talosctl apply-config --insecure -n 192.168.23.55 --file config/worker1.yaml
|
||||
talosctl apply-config --insecure -n 192.168.23.56 --file config/worker2.yaml
|
||||
talosctl apply-config --insecure -n 192.168.23.59 --file config/worker1.yaml
|
||||
talosctl apply-config --insecure -n 192.168.23.58 --file config/worker2.yaml
|
||||
|
||||
talosctl kubeconfig ~/.kube/talos-demo.yaml --nodes 192.168.23.54 --endpoints 192.168.23.54 --talosconfig config/talosconfig
|
||||
talosctl kubeconfig ~/.kube/talos-demo.yaml --nodes 192.168.23.57 --endpoints 192.168.23.57 --talosconfig config/talosconfig
|
||||
```
|
||||
|
||||
## Cilium
|
||||
@@ -71,23 +71,23 @@ kubectl apply -f cilium/l2-announcement-policy.yaml
|
||||
## Re-Apply configs
|
||||
|
||||
```bash
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.51 --file config/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 config/talosconfig apply-config -n 192.168.23.57 --file config/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 config/talosconfig apply-config -n 192.168.23.54 --file config/worker1.yaml
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.55 --file config/worker2.yaml
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.58 --file config/worker1.yaml
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.59 --file config/worker2.yaml
|
||||
```
|
||||
|
||||
## Re-Apply configs and reboot
|
||||
|
||||
```bash
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.51 --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 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 config/talosconfig apply-config -n 192.168.23.54 --file config/worker1.yaml --mode=reboot
|
||||
talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.55 --file config/worker2.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
|
||||
```
|
||||
|
||||
## Upgrade
|
||||
@@ -95,12 +95,12 @@ talosctl --talosconfig config/talosconfig apply-config -n 192.168.23.55 --file c
|
||||
```bash
|
||||
IMAGE=factory.talos.dev/metal-installer/956b9107edd250304169d2e7a765cdd4e0c31f9097036e2e113b042e6c01bb98:v1.10.4
|
||||
|
||||
talosctl --talosconfig config/talosconfig upgrade --nodes 192.168.23.51 --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 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 config/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}
|
||||
```
|
||||
|
||||
## Upgrade k8s
|
||||
|
||||
@@ -4,4 +4,4 @@ metadata:
|
||||
name: pool
|
||||
spec:
|
||||
blocks:
|
||||
- cidr: 192.168.23.57/32
|
||||
- cidr: 192.168.23.60/32
|
||||
@@ -7,7 +7,7 @@ spec:
|
||||
matchExpressions:
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
operator: DoesNotExist
|
||||
interfaces:
|
||||
- ^ens+
|
||||
# interfaces:
|
||||
# - ^ens+
|
||||
externalIPs: true
|
||||
loadBalancerIPs: true
|
||||
@@ -23,11 +23,11 @@ cgroup:
|
||||
autoMount:
|
||||
enabled: false
|
||||
hostRoot: /sys/fs/cgroup
|
||||
k8sServiceHost: 192.168.23.54
|
||||
k8sServiceHost: 192.168.23.57
|
||||
k8sServicePort: 6443
|
||||
l2announcements:
|
||||
enabled: true
|
||||
devices: ^ens+
|
||||
# devices: ^ens+
|
||||
hubble:
|
||||
relay:
|
||||
enabled: true
|
||||
|
||||
@@ -283,6 +283,7 @@ if [[ "$USE_DRBD" == "y" ]] && (( WORKER_COUNT == 0 )); then
|
||||
- name: drbd
|
||||
parameters:
|
||||
- usermode_helper=disabled
|
||||
- name: dm-thin-pool
|
||||
EOF
|
||||
if [[ "$USE_ZFS" == "y" ]]; then
|
||||
cat >> "$PATCH_FILE" << EOF
|
||||
|
||||
@@ -38,6 +38,7 @@ echo "${VERB} stand"
|
||||
do
|
||||
ssh root@${nodeip} "pvesh create /nodes/${nodeid}/qemu/${vmid_template}/clone --newid ${vmid}${i} --full false --name ${vm_name}-cp-${i}"
|
||||
ssh root@${nodeip} "pvesh set /nodes/${nodeid}/qemu/${vmid}${i}/config --cores 2 --vcpus 2 --memory 6144"
|
||||
ssh root@${nodeip} "pvesh set /nodes/${nodeid}/qemu/${vmid}${i}/config --scsihw virtio-scsi-pci --delete scsi1"
|
||||
ssh root@${nodeip} "pvesh set /pools/${poolid} --vms "${vmid}${i}""
|
||||
ssh root@${nodeip} "pvesh create /nodes/${nodeid}/qemu/${vmid}${i}/status/start"
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user