From e67e9daf40b911a0816fc8b60a929bc8e211bb3f Mon Sep 17 00:00:00 2001 From: Pravin Gadakh Date: Wed, 5 Feb 2020 11:56:30 +0530 Subject: [PATCH] added knobs in operator helm chart to control manager resources --- .../templates/deployment_seldon-controller-manager.yaml | 8 ++++---- helm-charts/seldon-core-operator/values.yaml | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/helm-charts/seldon-core-operator/templates/deployment_seldon-controller-manager.yaml b/helm-charts/seldon-core-operator/templates/deployment_seldon-controller-manager.yaml index 5f02bee22b..004c24b9b6 100644 --- a/helm-charts/seldon-core-operator/templates/deployment_seldon-controller-manager.yaml +++ b/helm-charts/seldon-core-operator/templates/deployment_seldon-controller-manager.yaml @@ -99,11 +99,11 @@ spec: protocol: TCP resources: limits: - cpu: 100m - memory: 30Mi + cpu: {{ .Values.manager.cpuLimit }} + memory: {{ .Values.manager.memoryLimit }} requests: - cpu: 100m - memory: 20Mi + cpu: {{ .Values.manager.cpuRequest }} + memory: {{ .Values.manager.memoryRequest }} volumeMounts: - mountPath: /tmp/k8s-webhook-server/serving-certs name: cert diff --git a/helm-charts/seldon-core-operator/values.yaml b/helm-charts/seldon-core-operator/values.yaml index e0bdea5884..421a9306df 100644 --- a/helm-charts/seldon-core-operator/values.yaml +++ b/helm-charts/seldon-core-operator/values.yaml @@ -102,3 +102,8 @@ usageMetrics: enabled: false webhook: port: 443 +manager: + memoryRequest: 20Mi + memoryLimit: 30Mi + cpuRequest: 100m + cpuLimit: 100m