make control plane tolerations configurable, change to preferredDuringSchedulingIgnoredDuringExecution
@@ -26,15 +26,15 @@ spec:
terminationGracePeriodSeconds: 10
tolerations:
- effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
+ key: ${K8S_CP_LABEL:=node-role.kubernetes.io/control-plane}
- effect: NoSchedule
key: node-role.kubernetes.io/master
affinity:
nodeAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
+ preferredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- - key: node-role.kubernetes.io/control-plane
+ - key: ${K8S_CP_LABEL:=node-role.kubernetes.io/control-plane}
operator: Exists
# remove once usage of node-role.kubernetes.io/master is removed from Kubernetes
- matchExpressions:
