Skip to content

Commit

Permalink
Adding pod affinity
Browse files Browse the repository at this point in the history
Signed-off-by: garland <[email protected]>
  • Loading branch information
sekka1 committed Aug 6, 2019
1 parent a05b6e8 commit d02b5c6
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions kubernetes/helm/nginx-ingress/values.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
nginx-ingress:
defaultBackend:
service:
omitClusterIP: true
controller:
replicaCount: 2
## Name of the ingress class to route through this controller
##
# ingressClass: nginx-external
Expand Down Expand Up @@ -38,3 +36,31 @@ nginx-ingress:
enabled: true
additionalLabels:
release: monitoring-prometheus-operator

affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- nginx-ingress
topologyKey: "kubernetes.io/hostname"

defaultBackend:
replicaCount: 2

service:
omitClusterIP: true

affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- nginx-ingress
topologyKey: "kubernetes.io/hostname"

0 comments on commit d02b5c6

Please sign in to comment.