diff --git a/Documentation/Helm-Charts/ceph-cluster-chart.md b/Documentation/Helm-Charts/ceph-cluster-chart.md index cf49dbdee..f74a93a68 100644 --- a/Documentation/Helm-Charts/ceph-cluster-chart.md +++ b/Documentation/Helm-Charts/ceph-cluster-chart.md @@ -81,6 +81,7 @@ The following table lists the configurable parameters of the rook-operator chart | `toolbox.containerSecurityContext` | Toolbox container security context | `{"capabilities":{"drop":["ALL"]},"runAsGroup":2016,"runAsNonRoot":true,"runAsUser":2016}` | | `toolbox.enabled` | Enable Ceph debugging pod deployment. See [toolbox](../Troubleshooting/ceph-toolbox.md) | `false` | | `toolbox.image` | Toolbox image, defaults to the image used by the Ceph cluster | `nil` | +| `toolbox.labels` | Toolbox labels | `{}` | | `toolbox.priorityClassName` | Set the priority class for the toolbox if desired | `nil` | | `toolbox.resources` | Toolbox resources | `{"limits":{"memory":"1Gi"},"requests":{"cpu":"100m","memory":"128Mi"}}` | | `toolbox.tolerations` | Toolbox tolerations | `[]` | diff --git a/deploy/charts/rook-ceph-cluster/templates/deployment.yaml b/deploy/charts/rook-ceph-cluster/templates/deployment.yaml index 63adf22d3..78926f810 100644 --- a/deploy/charts/rook-ceph-cluster/templates/deployment.yaml +++ b/deploy/charts/rook-ceph-cluster/templates/deployment.yaml @@ -7,6 +7,9 @@ metadata: namespace: {{ .Release.Namespace }} # namespace:cluster labels: app: rook-ceph-tools + {{- if .Values.toolbox.labels }} + {{- toYaml .Values.toolbox.labels | nindent 4 }} + {{- end }} spec: replicas: 1 {{- if .Values.revisionHistoryLimit }} @@ -19,6 +22,9 @@ spec: metadata: labels: app: rook-ceph-tools + {{- if .Values.toolbox.labels }} + {{- toYaml .Values.toolbox.labels | nindent 8 }} + {{- end }} spec: dnsPolicy: ClusterFirstWithHostNet {{- $network := .Values.cephClusterSpec.network | default dict -}} diff --git a/deploy/charts/rook-ceph-cluster/values.yaml b/deploy/charts/rook-ceph-cluster/values.yaml index 3f336c5cc..811c822ce 100644 --- a/deploy/charts/rook-ceph-cluster/values.yaml +++ b/deploy/charts/rook-ceph-cluster/values.yaml @@ -30,6 +30,8 @@ toolbox: tolerations: [] # -- Toolbox affinity affinity: {} + # -- Toolbox labels + labels: {} # -- Toolbox container security context containerSecurityContext: runAsNonRoot: true