[ungleich-ups] do not run on virtual or if we don't have ups

This commit is contained in:
Nico Schottelius 2026-09-17 14:14:22 +02:00
commit 147243f9ed

View file

@ -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