Add NoSchedule tolerations to rvmc pod
Add a toleration for the node-role.kubernetes.io/master:NoSchedule taint. This taint is restored on this review https://review.opendev.org/c/starlingx/ansible-playbooks/+/811978 to all standard (non-AIO) master nodes to prevent user pods from being scheduled and run. Therefore, these workloads will be scheduled and run on a worker node. This change will ensure that the rvmc pod will continue run on the master nodes (as designed). Test plan: PASS: Install rvmc pod with taint enabled on a STD system and verify that the pod is running. PASS: Describe rvmc pod and verify that toleration is added: Tolerations: node-role.kubernetes.io/master:NoSchedule op=Exists Closes-bug: 1968183 Signed-off-by: Enzo Candotti <enzo.candotti@windriver.com> Change-Id: I12ae4182967848d6acf9d7c0c99983b5be57f539
This commit is contained in:
@@ -13,6 +13,10 @@ spec:
|
||||
hostNetwork: true
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: {{ host_name }}
|
||||
tolerations:
|
||||
- key: "node-role.kubernetes.io/master"
|
||||
operator: "Exists"
|
||||
effect: "NoSchedule"
|
||||
imagePullSecrets:
|
||||
- name: default-registry-key
|
||||
containers:
|
||||
|
||||
Reference in New Issue
Block a user