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 1a9aae4f [FLINK-30804] helm/flink-kubernetes-operator - allow specifying resources for operator pod 1a9aae4f is described below commit 1a9aae4f45c042476b81c8344038893fd6535c4a Author: Vincent Chenal <vincent.che...@protonmail.com> AuthorDate: Fri Jan 27 16:33:27 2023 +0100 [FLINK-30804] helm/flink-kubernetes-operator - allow specifying resources for operator pod --- docs/content/docs/operations/helm.md | 1 + helm/flink-kubernetes-operator/templates/flink-operator.yaml | 2 ++ helm/flink-kubernetes-operator/values.yaml | 9 ++++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/operations/helm.md b/docs/content/docs/operations/helm.md index 3c5969ba..c7d1cb2b 100644 --- a/docs/content/docs/operations/helm.md +++ b/docs/content/docs/operations/helm.md @@ -74,6 +74,7 @@ The configurable parameters of the Helm chart and which default values as detail | operatorPod.dnsPolicy | DNS policy to be used by the operator pod. | | | operatorPod.dnsConfig | DNS configuration to be used by the operator pod. | | | operatorPod.nodeSelector | Custom nodeSelector to be added to the operator pod. | | +| operatorPod.resources | Custom resources block to be added to 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. | | diff --git a/helm/flink-kubernetes-operator/templates/flink-operator.yaml b/helm/flink-kubernetes-operator/templates/flink-operator.yaml index 103f06ce..fefffb9a 100644 --- a/helm/flink-kubernetes-operator/templates/flink-operator.yaml +++ b/helm/flink-kubernetes-operator/templates/flink-operator.yaml @@ -96,6 +96,8 @@ spec: - name: {{ $v.name | quote }} value: {{ $v.value | quote }} {{- end }} + resources: + {{- toYaml .Values.operatorPod.resources | nindent 12 }} securityContext: {{- toYaml .Values.operatorSecurityContext | nindent 12 }} volumeMounts: diff --git a/helm/flink-kubernetes-operator/values.yaml b/helm/flink-kubernetes-operator/values.yaml index 32517cc4..c55c3244 100644 --- a/helm/flink-kubernetes-operator/values.yaml +++ b/helm/flink-kubernetes-operator/values.yaml @@ -72,7 +72,14 @@ operatorPod: # Node tolerations for operator pod assignment # https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ tolerations: [] - + resources: {} + # resources: + # limits: + # cpu: "250m" + # memory: "512Mi" + # requests: + # cpu: "250m" + # memory: "512Mi" operatorServiceAccount: create: true