Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
c459a126
Commit
c459a126
authored
May 13, 2022
by
Dominik Hebeler
Browse files
added anti affinity
parent
dd2fb9d0
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
chart/templates/_helpers.tpl
View file @
c459a126
...
...
@@ -41,7 +41,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
Selector
labels
*/
}
}
{{- define "chart.selectorLabels" -}}
app.kubernetes.io/name: {{
include "chart.name" .
}}
app.kubernetes.io/name: {{
.Release.Name
}}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
...
...
chart/templates/deployment.yaml
View file @
c459a126
...
...
@@ -230,10 +230,15 @@ spec:
nodeSelector
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- with .Values.affinity
}}
affinity
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
podAntiAffinity
:
preferredDuringSchedulingIgnoredDuringExecution
:
-
weight
:
50
podAffinityTerm
:
labelSelector
:
matchLabels
:
app.kubernetes.io/instance
:
{{
.Release.Name
}}
topologyKey
:
kubernetes.io/hostname
{{
- with .Values.tolerations
}}
tolerations
:
{{
- toYaml . | nindent 8
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment