Skip to content

Commit

Permalink
Merge pull request #244 from dwertent/add-tolerations
Browse files Browse the repository at this point in the history
core(templates): Adding tolerations
  • Loading branch information
David Wertenteil authored Jul 31, 2023
2 parents dd4b1ae + 6094901 commit 3da0201
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,8 @@ spec:
mountPath: /etc/ssl/certs/proxy.crt
subPath: proxy.crt
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
- "/otelcol"
- "--config=/conf/otel-collector-config.yaml"
resources:
{{ toYaml .Values.otelCollector.resources | indent 14 }}
{{ toYaml .Values.otelCollector.resources | indent 14 }}
volumeMounts:
- name: otel-collector-config-volume
mountPath: /conf
Expand Down Expand Up @@ -106,4 +106,8 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/kubescape-cloud-operator/templates/storage/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ spec:
readOnly: true
resources:
{{ toYaml .Values.storage.resources | indent 12 }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.storage.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.storage.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: "data"
{{- if .Values.persistence.enabled }}
Expand Down

0 comments on commit 3da0201

Please sign in to comment.