Commit 652dd88f authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '1148-include-anti-affinity-for-pods' into 'development'

Resolve "Include Anti Affinity for pods"

Closes #1148

See merge request !1906
parents fcbe0956 778581f9
...@@ -49,10 +49,15 @@ spec: ...@@ -49,10 +49,15 @@ spec:
tolerations: tolerations:
{{ toYaml .Values.tolerations | indent 8 }} {{ toYaml .Values.tolerations | indent 8 }}
{{- end }} {{- end }}
{{- if .Values.affinity }}
affinity: affinity:
{{ toYaml .Values.affinity | indent 8 }} podAntiAffinity:
{{- end }} preferredDuringSchedulingIgnoredDuringExecution:
- weight: 50
podAffinityTerm:
labelSelector:
matchLabels:
app: {{ template "appname" . }}
topologyKey: kubernetes.io/hostname
volumes: volumes:
- name: secrets - name: secrets
secret: secret:
......
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