From bb5139f4c6c763c8725b2c48a7ace6b967f85506 Mon Sep 17 00:00:00 2001 From: Tal Efraim Date: Wed, 8 Oct 2025 00:31:28 +0300 Subject: [PATCH] Update(tolerations): Add tolerations option for scheduling the operator pods This PR is to add the option to provide tolerations like nodeSelector option for scheduling the operator pods --- helm/mysql-operator/templates/deployment.yaml | 3 +++ helm/mysql-operator/values.yaml | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/helm/mysql-operator/templates/deployment.yaml b/helm/mysql-operator/templates/deployment.yaml index 9c3a789d..d8cab9bf 100644 --- a/helm/mysql-operator/templates/deployment.yaml +++ b/helm/mysql-operator/templates/deployment.yaml @@ -96,3 +96,6 @@ spec: {{- if ((.Values).nodeSelector) }} nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} {{- end }} + {{- if ((.Values).tolerations) }} + tolerations: {{ toYaml .Values.tolerations | nindent 8 }} + {{- end }} diff --git a/helm/mysql-operator/values.yaml b/helm/mysql-operator/values.yaml index a412c504..40042c54 100644 --- a/helm/mysql-operator/values.yaml +++ b/helm/mysql-operator/values.yaml @@ -30,6 +30,13 @@ replicas: 1 #nodeSelector: # failure-domain.beta.kubernetes.io/zone: US-ASHBURN-AD-1 +# An example of using tolerations for scheduling the operator pods : +# tolerations: +# - key: "dedicated" +# operator: "Equal" +# value: "system" +# effect: "NoSchedule" + # If you would like to debug the Helm output with `helm template`, you need # to turn disableLookups on as during `helm template` Helm won't contact the kube API # and all lookups will thus fail