Commit 778581f9 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added pod anti affinity

parent fcbe0956
......@@ -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