Exclude robing from upgrade plan. Move vault node affinity to server nodes
This commit is contained in:
parent
e9d9475d0a
commit
1fb9fbc5b0
2 changed files with 10 additions and 6 deletions
|
|
@ -31,6 +31,10 @@ spec:
|
|||
matchExpressions:
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
operator: DoesNotExist
|
||||
- key: kubernetes.io/hostname
|
||||
operator: NotIn
|
||||
values:
|
||||
- robin
|
||||
prepare:
|
||||
args:
|
||||
- prepare
|
||||
|
|
|
|||
|
|
@ -18,12 +18,12 @@ spec:
|
|||
terminationGracePeriodSeconds: 10
|
||||
affinity:
|
||||
# 1. Pin the pods strictly to K3s server nodes
|
||||
# nodeAffinity:
|
||||
# requiredDuringSchedulingIgnoredDuringExecution:
|
||||
# nodeSelectorTerms:
|
||||
# - matchExpressions:
|
||||
# - key: node-role.kubernetes.io/control-plane
|
||||
# operator: Exists
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
operator: Exists
|
||||
|
||||
# 2. Force those pods onto different physical server nodes
|
||||
podAntiAffinity:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue