diff --git a/ungleich-ups/daemonset.yaml b/ungleich-ups/daemonset.yaml index 7e0a332..4e720d9 100644 --- a/ungleich-ups/daemonset.yaml +++ b/ungleich-ups/daemonset.yaml @@ -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