Add node affinity for traefik to prefer infra node
This commit is contained in:
@@ -1,7 +1,23 @@
|
||||
# infrastructure/traefik/values.yaml
|
||||
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:
|
||||
web:
|
||||
port: 80
|
||||
|
||||
Reference in New Issue
Block a user