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

added pod anti affinity

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