diff --git a/helm/trident-operator/templates/deployment.yaml b/helm/trident-operator/templates/deployment.yaml index 69d4a3be1..7598e3867 100644 --- a/helm/trident-operator/templates/deployment.yaml +++ b/helm/trident-operator/templates/deployment.yaml @@ -52,6 +52,10 @@ spec: {{- if .Values.operatorDebug }} - -debug {{- end }} + {{- with .Values.resources }} + resources: + {{- toYaml . | nindent 12 }} + {{- end }} env: - name: POD_NAME valueFrom: @@ -69,13 +73,6 @@ spec: image: {{ include "trident-operator.image" $ }} imagePullPolicy: {{ .Values.imagePullPolicy }} name: trident-operator - resources: - requests: - cpu: "10m" - memory: "40Mi" - limits: - cpu: "20m" - memory: "80Mi" {{- if and (eq .Values.cloudProvider "Azure") (eq .Values.cloudIdentity "") }} volumes: - name: azure-cred diff --git a/helm/trident-operator/values.yaml b/helm/trident-operator/values.yaml index 96be59d69..f99688b55 100644 --- a/helm/trident-operator/values.yaml +++ b/helm/trident-operator/values.yaml @@ -186,3 +186,12 @@ ontapConfigurator: svmName: '' protocols: [] authType: '' + +# ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +resources: + requests: + cpu: "10m" + memory: "40Mi" + limits: + cpu: "20m" + memory: "80Mi"