[ungleich-ups] do not run on virtual or if we don't have ups
This commit is contained in:
parent
d99aa780e4
commit
147243f9ed
1 changed files with 14 additions and 0 deletions
|
|
@ -14,6 +14,20 @@ spec:
|
|||
labels:
|
||||
app.kubernetes.io/name: ungleich-ups
|
||||
spec:
|
||||
# prevent from running on wrong nodes
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: virtual
|
||||
operator: NotIn
|
||||
values:
|
||||
- "true"
|
||||
- key: ups
|
||||
operator: NotIn
|
||||
values:
|
||||
- "false"
|
||||
# Allows scheduling on control-plane/master nodes if needed
|
||||
tolerations:
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue