Skip to content
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

An option to specify additional tolerations for push pods #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ The `values.yaml` contains variables used to configure a deployment of this char
| extraEnvVars | Extra environment variables to set in the push container | [] |
| extraVolumes | Extra volumes to mount in the push container | [] |
| extraVolumeMounts | Extra volume mounts in the push container | [] |
| extraTolerations | Extra tolerations to be added for push pods | [] |
| cluster | Cluster metadata to attach to metrics | null |
| logs.uri | Sumo logic api uri for logs (required if using default endpoint config and logs data type) | null |
| metrics.uri | Sumo logic api uri for metrics (required if using default endpoint config and metrics data type) | null |
Expand Down
7 changes: 7 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,19 @@ spec:
{{- if .Values.workerGroupSelector }}
nodeSelector:
sumologic.com/workerGroup: {{ .Values.workerGroupSelector }}
{{- end }}
{{- if or .Values.workerGroupSelector .Values.extraTolerations }}
tolerations:
{{- if .Values.workerGroupSelector }}
- key: "workerGroup"
operator: "Equal"
value: {{ .Values.workerGroupSelector }}
effect: "NoSchedule"
{{- end }}
{{- if .Values.extraTolerations }}
{{- toYaml .Values.extraTolerations | nindent 8 }}
{{- end }}
{{- end }}
volumes:
{{- if .Values.endpointsSecret }}
- name: endpoints
Expand Down
2 changes: 2 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ extraVolumes: []
extraVolumeMounts: []

extraEnvVars: []

extraTolerations: []

servicemonitor:
enabled: true
Expand Down