From 4edfd0fa0687e71ac9633686a7c82c3898d6778a Mon Sep 17 00:00:00 2001 From: morgan Date: Thu, 17 Oct 2024 10:24:04 +0200 Subject: [PATCH] feat: taints and tolerations --- charts/collector/templates/deployment.yaml | 9 +++++++++ charts/collector/values.yaml | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/charts/collector/templates/deployment.yaml b/charts/collector/templates/deployment.yaml index c1cf85d..ef51bd6 100644 --- a/charts/collector/templates/deployment.yaml +++ b/charts/collector/templates/deployment.yaml @@ -41,3 +41,12 @@ spec: - name: {{ include "chart.fullname" . }}-config configMap: name: {{ include "chart.fullname" . }}-config + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/collector/values.yaml b/charts/collector/values.yaml index 915b6a2..a5f3955 100644 --- a/charts/collector/values.yaml +++ b/charts/collector/values.yaml @@ -97,3 +97,9 @@ config: log: level: error console: false # Defaults to structured if false + +## @param nodeSelector Node selector for the deployment. +## @param tolerations Node taint tolerations for the deployment. + +nodeSelector: {} +tolerations: []