Add node affinity for traefik to prefer infra node
This commit is contained in:
@@ -1,7 +1,23 @@
|
|||||||
# infrastructure/traefik/values.yaml
|
# infrastructure/traefik/values.yaml
|
||||||
deployment:
|
deployment:
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
preference:
|
||||||
|
matchExpressions:
|
||||||
|
- key: workload
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- infra
|
||||||
|
- weight: 50
|
||||||
|
preference:
|
||||||
|
matchExpressions:
|
||||||
|
- key: workload
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- Games
|
||||||
ports:
|
ports:
|
||||||
web:
|
web:
|
||||||
port: 80
|
port: 80
|
||||||
|
|||||||
Reference in New Issue
Block a user