moved prometheus-agent to worker node

This commit is contained in:
2025-11-15 16:50:27 +00:00
parent cb412fcb02
commit dfd374ab78
2 changed files with 9 additions and 1 deletions

View File

@@ -78,3 +78,9 @@ cat /var/lib/rancher/k3s/server/node-token
# install k3s as agent / worker node
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="agent --server https://casa.dev.lan:6443 --token <TOKEN>" sh -s -
```
**Set node labels:**
``` bash
kubectl label node casa-minion-01 role=worker-node
```

View File

@@ -25,8 +25,10 @@ spec:
memory: 128Mi
limits:
cpu: 200m
memory: 180Mi
memory: 256Mi
serviceAccountName: prometheus-agent
nodeSelector:
role: worker-node
---
apiVersion: rbac.authorization.k8s.io/v1