Skip to content

Commit

Permalink
Merge pull request #773 from vponomaryov/fix-helm-pod-anti-affinity
Browse files Browse the repository at this point in the history
Fix default anti-affinity rules for scylla-operator
  • Loading branch information
zimnx authored Sep 7, 2021
2 parents b24c6ae + 806d209 commit 71f335a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions deploy/operator/50_operator.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: webhook-server
app.kubernetes.io/name: webhook-server
app.kubernetes.io/instance: scylla-operator
app.kubernetes.io/name: scylla-operator
topologyKey: kubernetes.io/hostname
weight: 1
4 changes: 2 additions & 2 deletions deploy/operator/50_webhookserver.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: scylla-operator
app.kubernetes.io/name: scylla-operator
app.kubernetes.io/instance: webhook-server
app.kubernetes.io/name: webhook-server
topologyKey: kubernetes.io/hostname
weight: 1
8 changes: 4 additions & 4 deletions examples/common/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3785,8 +3785,8 @@ spec:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: webhook-server
app.kubernetes.io/name: webhook-server
app.kubernetes.io/instance: scylla-operator
app.kubernetes.io/name: scylla-operator
topologyKey: kubernetes.io/hostname
weight: 1

Expand Down Expand Up @@ -3859,8 +3859,8 @@ spec:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: scylla-operator
app.kubernetes.io/name: scylla-operator
app.kubernetes.io/instance: webhook-server
app.kubernetes.io/name: webhook-server
topologyKey: kubernetes.io/hostname
weight: 1

Expand Down
8 changes: 4 additions & 4 deletions helm/scylla-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ affinity:
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: webhook-server
app.kubernetes.io/instance: webhook-server
app.kubernetes.io/name: scylla-operator
app.kubernetes.io/instance: scylla-operator
topologyKey: kubernetes.io/hostname

webhook:
Expand Down Expand Up @@ -72,6 +72,6 @@ webhookServerAffinity:
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: scylla-operator
app.kubernetes.io/instance: scylla-operator
app.kubernetes.io/name: webhook-server
app.kubernetes.io/instance: webhook-server
topologyKey: kubernetes.io/hostname

0 comments on commit 71f335a

Please sign in to comment.