Skip to content

Commit

Permalink
Fix antiAffinity selectors
Browse files Browse the repository at this point in the history
Signed-off-by: jannfis <jann@mistrust.net>
  • Loading branch information
jannfis committed Mar 7, 2021
1 parent 77ec171 commit c057683
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 4 additions & 0 deletions manifests/ha/base/redis-ha/overlays/deployment-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
app.kubernetes.io/name: argocd-redis-ha-haproxy
- op: replace
path: /spec/template/metadata/labels
value:
app.kubernetes.io/name: argocd-redis-ha-haproxy
- op: replace
path: /spec/template/spec/affinity/podAntiAffinity/requiredDuringSchedulingIgnoredDuringExecution/0/labelSelector/matchLabels
value:
app.kubernetes.io/name: argocd-redis-ha-haproxy
6 changes: 5 additions & 1 deletion manifests/ha/base/redis-ha/overlays/statefulset-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
- op: replace
path: /spec/template/metadata/labels
value:
app.kubernetes.io/name: argocd-redis-ha
app.kubernetes.io/name: argocd-redis-ha
- op: replace
path: /spec/template/spec/affinity/podAntiAffinity/requiredDuringSchedulingIgnoredDuringExecution/0/labelSelector/matchLabels
value:
app.kubernetes.io/name: argocd-redis-ha
8 changes: 2 additions & 6 deletions manifests/ha/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3216,9 +3216,7 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: redis-ha-haproxy
release: argocd
revision: "1"
app.kubernetes.io/name: argocd-redis-ha-haproxy
topologyKey: kubernetes.io/hostname
containers:
- image: haproxy:2.0.20-alpine
Expand Down Expand Up @@ -3519,9 +3517,7 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: redis-ha
argocd-redis-ha: replica
release: argocd
app.kubernetes.io/name: argocd-redis-ha
topologyKey: kubernetes.io/hostname
automountServiceAccountToken: false
containers:
Expand Down
8 changes: 2 additions & 6 deletions manifests/ha/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3131,9 +3131,7 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: redis-ha-haproxy
release: argocd
revision: "1"
app.kubernetes.io/name: argocd-redis-ha-haproxy
topologyKey: kubernetes.io/hostname
containers:
- image: haproxy:2.0.20-alpine
Expand Down Expand Up @@ -3434,9 +3432,7 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: redis-ha
argocd-redis-ha: replica
release: argocd
app.kubernetes.io/name: argocd-redis-ha
topologyKey: kubernetes.io/hostname
automountServiceAccountToken: false
containers:
Expand Down

0 comments on commit c057683

Please sign in to comment.