From f889e212efc6d2007700492ea8a3d779c573d8f5 Mon Sep 17 00:00:00 2001 From: Tom Hellier Date: Tue, 8 Mar 2022 13:58:34 +0000 Subject: [PATCH] helm: add resources to rook-ceph-tools pod Allow the configuration of the rook-ceph-tools pod's resource requests/limits. Closes: #9855 Signed-off-by: Tom Hellier (cherry picked from commit 5e65f661ccecad89d547ca0f3da551ce54bc808e) --- Documentation/helm-ceph-cluster.md | 1 + deploy/charts/rook-ceph-cluster/templates/deployment.yaml | 4 ++++ deploy/charts/rook-ceph-cluster/values.yaml | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/Documentation/helm-ceph-cluster.md b/Documentation/helm-ceph-cluster.md index cca1a1d8a..73a321310 100644 --- a/Documentation/helm-ceph-cluster.md +++ b/Documentation/helm-ceph-cluster.md @@ -62,6 +62,7 @@ The following tables lists the configurable parameters of the rook-operator char | `toolbox.enabled` | Enable Ceph debugging pod deployment. See [toolbox](ceph-toolbox.md) | `false` | | `toolbox.tolerations` | Toolbox tolerations | `[]` | | `toolbox.affinity` | Toolbox affinity | `{}` | +| `toolbox.resources` | Toolbox resources | `{}` | | `monitoring.enabled` | Enable Prometheus integration, will also create necessary RBAC rules | `false` | | `cephClusterSpec.*` | Cluster configuration, see below | See below | | `ingress.dashboard` | Enable an ingress for the ceph-dashboard | `{}` | diff --git a/deploy/charts/rook-ceph-cluster/templates/deployment.yaml b/deploy/charts/rook-ceph-cluster/templates/deployment.yaml index e100f7990..c5b939d9a 100644 --- a/deploy/charts/rook-ceph-cluster/templates/deployment.yaml +++ b/deploy/charts/rook-ceph-cluster/templates/deployment.yaml @@ -42,6 +42,10 @@ spec: secretKeyRef: name: rook-ceph-mon key: ceph-secret +{{- if .Values.toolbox.resources }} + resources: +{{- toYaml .Values.toolbox.resources | nindent 12 }} +{{- end }} volumeMounts: - mountPath: /etc/ceph name: ceph-config diff --git a/deploy/charts/rook-ceph-cluster/values.yaml b/deploy/charts/rook-ceph-cluster/values.yaml index 2695867e3..94958b98f 100644 --- a/deploy/charts/rook-ceph-cluster/values.yaml +++ b/deploy/charts/rook-ceph-cluster/values.yaml @@ -24,6 +24,13 @@ toolbox: image: rook/ceph:VERSION tolerations: [] affinity: {} + resources: {} + # limits: + # cpu: "500m" + # memory: "1024Mi" + # requests: + # cpu: "100m" + # memory: "128Mi" # Set the priority class for the toolbox if desired # priorityClassName: class