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:
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 50
podAffinityTerm:
labelSelector:
matchLabels:
app: {{ template "appname" . }}
topologyKey: kubernetes.io/hostname
volumes:
- name: secrets
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