-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add affinity config in fluentd deployment #436
Changes from 6 commits
0d03cd4
fc2b86c
abc1b91
dabae2f
ed05ef0
8aa81c1
80d0b01
d12d851
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,43 @@ spec: | |
{{- if .Values.deployment.tolerations }} | ||
tolerations: | ||
{{ toYaml .Values.deployment.tolerations | indent 8 }} | ||
{{- end }} | ||
{{- if or .Values.deployment.affinity .Values.deployment.podAntiAffinity }} | ||
affinity: | ||
{{- if .Values.deployment.affinity }} | ||
{{ toYaml .Values.deployment.affinity | indent 8 }} | ||
{{- end }} | ||
{{- if eq .Values.deployment.podAntiAffinity "hard"}} | ||
podAntiAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchExpressions: | ||
- key: app | ||
operator: In | ||
values: | ||
- {{ template "sumologic.labels.app" . }} | ||
- key: app | ||
operator: In | ||
values: | ||
- prometheus-operator-prometheus | ||
Comment on lines
+42
to
+45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This section checks for the prometheus app label. |
||
topologyKey: "kubernetes.io/hostname" | ||
{{else if eq .Values.deployment.podAntiAffinity "soft"}} | ||
podAntiAffinity: | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- weight: 100 | ||
podAffinityTerm: | ||
labelSelector: | ||
matchExpressions: | ||
- key: app | ||
operator: In | ||
values: | ||
- {{ template "sumologic.labels.app" . }} | ||
- key: app | ||
operator: In | ||
values: | ||
- prometheus-operator-prometheus | ||
topologyKey: "kubernetes.io/hostname" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
{{- end }} | ||
{{- end }} | ||
volumes: | ||
- name: pos-files | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ nameOverride: "" | |
deployment: | ||
nodeSelector: {} | ||
tolerations: {} | ||
affinity: {} | ||
podAntiAffinity: "soft" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you also leave a comment here for the customers that the accepted values are "soft" and "hard", and what those mean? |
||
replicaCount: 3 | ||
resources: | ||
limits: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section checks for the fleuntd app label.