Skip to content

Commit 9c54a3d

Browse files
authored
Add node affinity to schedule cloud controller manager only on control plane nodes. (#2929)
1 parent dcb0708 commit 9c54a3d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

manifests/controller-manager/openstack-cloud-controller-manager-ds.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ spec:
2323
labels:
2424
k8s-app: openstack-cloud-controller-manager
2525
spec:
26-
nodeSelector:
27-
node-role.kubernetes.io/control-plane: "true"
26+
affinity:
27+
nodeAffinity:
28+
requiredDuringSchedulingIgnoredDuringExecution:
29+
nodeSelectorTerms:
30+
- matchExpressions:
31+
- key: node-role.kubernetes.io/control-plane
32+
operator: Exists
2833
securityContext:
2934
runAsUser: 1001
3035
tolerations:

0 commit comments

Comments
 (0)