From 24099498cc7e81c46e6a0e7452ec39d6787e63d1 Mon Sep 17 00:00:00 2001 From: Rich Barton-Cooper Date: Wed, 5 Feb 2025 16:22:37 +0000 Subject: [PATCH] feat: expose container resources for ske operator --- ske-operator/templates/ske-operator-distribution.yaml | 8 +------- ske-operator/values.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ske-operator/templates/ske-operator-distribution.yaml b/ske-operator/templates/ske-operator-distribution.yaml index b4339a2..255a3c8 100644 --- a/ske-operator/templates/ske-operator-distribution.yaml +++ b/ske-operator/templates/ske-operator-distribution.yaml @@ -388,13 +388,7 @@ spec: port: 8081 initialDelaySeconds: 5 periodSeconds: 10 - resources: - limits: - cpu: 500m - memory: 128Mi - requests: - cpu: 10m - memory: 64Mi + resources: {{ toYaml .Values.skeOperator.resources | nindent 10 }} securityContext: allowPrivilegeEscalation: false capabilities: diff --git a/ske-operator/values.yaml b/ske-operator/values.yaml index 9d9457b..b84f9c4 100644 --- a/ske-operator/values.yaml +++ b/ske-operator/values.yaml @@ -64,6 +64,15 @@ releaseStorage: # values: # accessKeyID: "my-access" # secretAccessKey: "my-secret" +skeOperator: + # Set if you want to change the resources for the operator container + resources: + requests: + memory: "128Mi" + cpu: "50m" + limits: + memory: "256Mi" + cpu: "100m" skeDeployment: # Set to true if you want to deploy SKE enabled: true