Commit 86e976e2 authored by Petr Drastil's avatar Petr Drastil Committed by David McKay

use pod anti-affinity to support HA deployment by default

parent b9a76e04
......@@ -59,7 +59,18 @@ meta:
# repository: influxdb
# nodeSelector: {}
# tolerations: []
# affinity: {}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: influxdb.influxdata.com/component
operator: In
values:
- meta
topologyKey: kubernetes.io/hostname
# podAnnotations: {}
#
# podSecurityContext: {}
......@@ -137,7 +148,18 @@ data:
# repository: influxdb
# nodeSelector: {}
# tolerations: []
# affinity: {}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: influxdb.influxdata.com/component
operator: In
values:
- data
topologyKey: kubernetes.io/hostname
# podAnnotations: {}
#
# podSecurityContext: {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment