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