ansible: add worker nodes k3s update playbook

This commit is contained in:
Márcio Fernandes
2026-08-19 14:44:42 +00:00
parent 9fcf71c19b
commit 0d64b82f09
4 changed files with 36 additions and 26 deletions
+5 -25
View File
@@ -12,11 +12,11 @@
- [casa - control Plane - k3s setup](#casa---control-plane---k3s-setup)
- [minion01 - worker node](#minion01---worker-node)
- [Minion01 - proxmox vm](#minion01---proxmox-vm)
- [casa-minion-01 - k3s - setup](#casa-minion-01---k3s---setup)
- [casa-minion-01 - local path config](#casa-minion-01---local-path-config)
- [fstab](#fstab)
- [casa-mini-minion-01 - worker node](#casa-mini-minion-01---worker-node)
- [casa-mini-minion-01 - proxmox vm](#casa-mini-minion-01---proxmox-vm)
- [casa-mini-minion-01 - k3s - setup](#casa-mini-minion-01---k3s---setup)
- [casa-mini-minion-01 taints](#casa-mini-minion-01-taints)
## Common
@@ -186,7 +186,6 @@ EOF
### casa - control Plane - k3s setup
**Taint NoSchedule on master node:**
kubectl taint nodes <master-node-name> node-role.kubernetes.io/control-plane=:NoSchedule
@@ -246,18 +245,9 @@ sockets: 1
| **OS** | Debian GNU/Linux 12 (bookworm) |
| **KERNEL** | 6.1.0-44-amd64 |
### casa-minion-01 - k3s - setup
### casa-minion-01 - local path config
``` bash
# install k3s as agent / worker node
# execute on server to get token
# cat /var/lib/rancher/k3s/server/node-token
K3S_TOKEN="????"
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.36.1+k3s1 INSTALL_K3S_EXEC="agent --data-dir /dataDisks/nvme00/k3s --server https://casa.dev.lan:6443 --token ${K3S_TOKEN}" sh -s -
```
Change kubectl -n kube-system edit configmap local-path-config on kube-system to set path to provisioner.
`kubectl -n kube-system edit configmap local-path-config on kube-system` to set path to provisioner.
``` yaml
config.json: |-
@@ -328,19 +318,9 @@ usb0: host=1-1.1
| **OS** | Debian GNU/Linux 12 (bookworm) |
| **KERNEL** | 6.1.0-44-amd64 |
### casa-mini-minion-01 - k3s - setup
### casa-mini-minion-01 taints
``` bash
# install k3s as agent / worker node
# execute on server to get token
# cat /var/lib/rancher/k3s/server/node-token
K3S_TOKEN="???"
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.36.1+k3s1 INSTALL_K3S_EXEC="agent --server https://casa.dev.lan:6443 --token ${K3S_TOKEN}" sh -s -
```
Change kubectl -n kube-system edit configmap local-path-config on kube-system to set path to provisioner.
``` bash
kubectl taint nodes casa-mini-minion-01 infra.limbosolutions.com/dedicated=casa-mini-minion-01:NoSchedule
```