Add legacy control-plane toleration

The node-role.kubernetes.io/master:NoSchedule taint is being
replaced by node-role.kubernetes.io/control-plane:NoSchedule

The legacy toleration had been replaced in this app before but we
need to keep both for a compatibility reason.
So both taints are being supported.

Test plan:
PASS: * Upload and apply the app on a standard configuration lab.
      * Check it runs on the control-plane nodes.
      * Add a "control-plane" taint similar to the existing
        "master" one
      * Ensure that the app containers still run on the control-plane
        nodes.

Story: 2010339
Task: 46671

Signed-off-by: Agustin Carranza <agustin.carranza@windriver.com>
Change-Id: Ib9e7525858756b2b797686eb418ea3a6beb844a8
This commit is contained in:
Agustin Carranza 2022-10-25 17:34:35 -03:00
parent 9f42416c15
commit b74b00fa5f

View File

@ -36,6 +36,9 @@ tolerations:
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
configmap:
name_snmpd: snmpd-etc-config