Skip to content
Snippets Groups Projects
Commit 778581f9 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added pod anti affinity

parent fcbe0956
No related branches found
No related tags found
3 merge requests!1937Development,!1907Development,!1906Resolve "Include Anti Affinity for pods"
...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment