Relax dex deployment anti-affinity.
This can't be met on a cluster of n+2 size (n masters, 2 workers), as we
are creating a deployment of 3.
Let's relax the scheduling from required to preferred.
@@ -122,8 +122,10 @@ spec:
# ensure dex pods are running on different hosts
affinity:
podAntiAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- - labelSelector:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - weight: 1
+ podAffinityTerm:
+ labelSelector:
matchExpressions:
- key: app
operator: In
