From c980dc2d4d85fc994e2f4ea533bbafb55b9606a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20M=C3=BCnch?= Date: Fri, 30 Jul 2021 10:09:45 +0200 Subject: [PATCH] ceph: add empty dirs for /var/lib/rook and /etc/ceph MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds volumes and mounts for /var/lib/rook and /etc/ceph to the operator deployment in the Helm chart. This is consistent with the example operator manifest and is sometimes even required on clusters with stricter permissions on the local filesystem. Signed-off-by: Dominik Münch --- cluster/charts/rook-ceph/templates/deployment.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cluster/charts/rook-ceph/templates/deployment.yaml b/cluster/charts/rook-ceph/templates/deployment.yaml index 4bfbcdb9d..c6402c129 100644 --- a/cluster/charts/rook-ceph/templates/deployment.yaml +++ b/cluster/charts/rook-ceph/templates/deployment.yaml @@ -26,6 +26,11 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: ["ceph", "operator"] + volumeMounts: + - mountPath: /var/lib/rook + name: rook-config + - mountPath: /etc/ceph + name: default-config-dir env: - name: ROOK_CURRENT_NAMESPACE_ONLY value: {{ .Values.currentNamespaceOnly | quote }} @@ -340,3 +345,8 @@ spec: {{- if .Values.rbacEnable }} serviceAccountName: rook-ceph-system {{- end }} + volumes: + - name: rook-config + emptyDir: {} + - name: default-config-dir + emptyDir: {}