moved prometheus-agent to worker node
This commit is contained in:
@@ -78,3 +78,9 @@ cat /var/lib/rancher/k3s/server/node-token
|
|||||||
# install k3s as agent / worker node
|
# 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 -
|
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
|
||||||
|
```
|
||||||
|
|||||||
@@ -25,8 +25,10 @@ spec:
|
|||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
memory: 180Mi
|
memory: 256Mi
|
||||||
serviceAccountName: prometheus-agent
|
serviceAccountName: prometheus-agent
|
||||||
|
nodeSelector:
|
||||||
|
role: worker-node
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
|||||||
Reference in New Issue
Block a user