You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by gy...@apache.org on 2022/10/21 14:25:36 UTC

[flink-kubernetes-operator] branch main updated: [FLINK-29694] Support tolerations in helm template for flink operator deployment

This is an automated email from the ASF dual-hosted git repository.

gyfora pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new f2c34abc [FLINK-29694] Support tolerations in helm template for flink operator deployment
f2c34abc is described below

commit f2c34abc466c9e33745a9b2b62e4ac2ad640ef39
Author: Zhiming <i-...@hotmail.com>
AuthorDate: Fri Oct 21 22:25:31 2022 +0800

    [FLINK-29694] Support tolerations in helm template for flink operator deployment
---
 docs/content/docs/operations/helm.md                         | 1 +
 helm/flink-kubernetes-operator/templates/flink-operator.yaml | 4 ++++
 helm/flink-kubernetes-operator/values.yaml                   | 3 +++
 3 files changed, 8 insertions(+)

diff --git a/docs/content/docs/operations/helm.md b/docs/content/docs/operations/helm.md
index 6a58e86f..8eb74b0f 100644
--- a/docs/content/docs/operations/helm.md
+++ b/docs/content/docs/operations/helm.md
@@ -70,6 +70,7 @@ The configurable parameters of the Helm chart and which default values as detail
 | operatorPod.env | Custom env to be added to the operator pod. | |
 | operatorPod.dnsPolicy | DNS policy to be used by the operator pod. | |
 | operatorPod.dnsConfig | DNS configuration to be used by the operator pod. | |
+| operatorPod.tolerations | Custom tolerations to be added to the operator pod. | |
 | operatorServiceAccount.create | Whether to enable operator service account to create for flink-kubernetes-operator. | true |
 | operatorServiceAccount.annotations | The annotations of operator service account. | |
 | operatorServiceAccount.name | The name of operator service account. | flink-operator |
diff --git a/helm/flink-kubernetes-operator/templates/flink-operator.yaml b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
index 8317fbab..c51609c7 100644
--- a/helm/flink-kubernetes-operator/templates/flink-operator.yaml
+++ b/helm/flink-kubernetes-operator/templates/flink-operator.yaml
@@ -52,6 +52,10 @@ spec:
       {{- if .Values.operatorPod.nodeSelector }}
       nodeSelector: {{ toYaml .Values.operatorPod.nodeSelector | nindent 8 }}
       {{- end }}
+      {{- with .Values.operatorPod.tolerations }}
+      tolerations:
+        {{- toYaml . | nindent 8 }}
+      {{- end }}
       {{- with .Values.imagePullSecrets }}
       imagePullSecrets:
         {{- toYaml . | nindent 8 }}
diff --git a/helm/flink-kubernetes-operator/values.yaml b/helm/flink-kubernetes-operator/values.yaml
index 9b6b3d80..d777635d 100644
--- a/helm/flink-kubernetes-operator/values.yaml
+++ b/helm/flink-kubernetes-operator/values.yaml
@@ -60,6 +60,9 @@ operatorPod:
   # Node labels for operator pod assignment
   # https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
   nodeSelector: {}
+  # Node tolerations for operator pod assignment
+  # https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
+  tolerations: []
 
 
 operatorServiceAccount: