Add missing label to dex pods

The podAntiAffinity rules of dex pods expect each dex pod to have the
label "app: dex" to prevent more than one pod from being scheduled in
the same node. However, this label was not present in dex pods. This
commit fixes this.

Test Plan:

PASS: Successfully compile a new OIDC app tarball, upload it to a AIO-DX
environment, test OIDC app functionality, restart the active controller
network and verify that the dex pods never get scheduled to the same
controller.

Partial-Bug: 2058075

Change-Id: Ibc948c68478f97563daf1dc523258500c278ab6a
Signed-off-by: Joao Victor Portal <Joao.VictorPortal@windriver.com>
This commit is contained in:
Joao Victor Portal 2024-03-15 11:00:56 -03:00
parent 5eb05a3c0b
commit defdac3b1a
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ tolerations:
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
podLabels:
app: dex
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution: