From 32e45226108fc0aede9bd9e0eecc84045e384dbd Mon Sep 17 00:00:00 2001 From: Stefanos Malliaros Date: Mon, 7 Apr 2025 16:32:51 +0100 Subject: [PATCH] parametrise container resources --- helm/trident-operator/templates/deployment.yaml | 6 +----- helm/trident-operator/values.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) 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