diff --git a/helm/trident-operator/templates/deployment.yaml b/helm/trident-operator/templates/deployment.yaml index 69d4a3be1..846fa2a76 100644 --- a/helm/trident-operator/templates/deployment.yaml +++ b/helm/trident-operator/templates/deployment.yaml @@ -71,11 +71,7 @@ spec: name: trident-operator resources: requests: - cpu: "10m" - memory: "40Mi" - limits: - cpu: "20m" - memory: "80Mi" +{{ toYaml .Values.resources | indent 10 }} {{- 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..c23143877 100644 --- a/helm/trident-operator/values.yaml +++ b/helm/trident-operator/values.yaml @@ -15,6 +15,15 @@ deploymentAnnotations: {} ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ tolerations: [] +resources: + requests: + cpu: "10m" + memory: "40Mi" + limits: + cpu: "20m" + memory: "80Mi" + + ## Affinity for pod assignment ## The following affinity configuration ensures that the Trident operator will only be scheduled on nodes with the specified architecture and OS, Hence, do not modify this section. To add custom affinity rules, please append your content to this configuration as needed ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity