From cc6c51395ebb41550a535caf952abc656caf44f6 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Thu, 26 Aug 2021 10:58:02 +0530 Subject: [PATCH] deploy: update templates for ceph.conf updated cephfs and rbd templates to mount the ceph.conf configmap. Signed-off-by: Madhu Rajanna --- deploy/cephfs/kubernetes/csi-cephfsplugin-provisioner.yaml | 5 +++++ deploy/cephfs/kubernetes/csi-cephfsplugin.yaml | 5 +++++ deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml | 7 +++++++ deploy/rbd/kubernetes/csi-rbdplugin.yaml | 5 +++++ 4 files changed, 22 insertions(+) diff --git a/deploy/cephfs/kubernetes/csi-cephfsplugin-provisioner.yaml b/deploy/cephfs/kubernetes/csi-cephfsplugin-provisioner.yaml index 3434f9d7e..a3d12ae72 100644 --- a/deploy/cephfs/kubernetes/csi-cephfsplugin-provisioner.yaml +++ b/deploy/cephfs/kubernetes/csi-cephfsplugin-provisioner.yaml @@ -143,6 +143,8 @@ spec: readOnly: true - name: host-dev mountPath: /dev + - name: ceph-config + mountPath: /etc/ceph/ - name: ceph-csi-config mountPath: /etc/ceph-csi-config/ - name: keys-tmp-dir @@ -181,6 +183,9 @@ spec: - name: host-dev hostPath: path: /dev + - name: ceph-config + configMap: + name: ceph-config - name: ceph-csi-config configMap: name: ceph-csi-config diff --git a/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml b/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml index e182beb38..d0f2c6364 100644 --- a/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml +++ b/deploy/cephfs/kubernetes/csi-cephfsplugin.yaml @@ -94,6 +94,8 @@ spec: mountPath: /dev - name: host-mount mountPath: /run/mount + - name: ceph-config + mountPath: /etc/ceph/ - name: ceph-csi-config mountPath: /etc/ceph-csi-config/ - name: keys-tmp-dir @@ -152,6 +154,9 @@ spec: - name: host-mount hostPath: path: /run/mount + - name: ceph-config + configMap: + name: ceph-config - name: ceph-csi-config configMap: name: ceph-csi-config diff --git a/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml b/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml index e887e89b1..a1fcd2948 100644 --- a/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml +++ b/deploy/rbd/kubernetes/csi-rbdplugin-provisioner.yaml @@ -164,6 +164,8 @@ spec: mountPath: /etc/ceph-csi-encryption-kms-config/ - name: keys-tmp-dir mountPath: /tmp/csi/keys + - name: ceph-config + mountPath: /etc/ceph/ - name: csi-rbdplugin-controller securityContext: privileged: true @@ -187,6 +189,8 @@ spec: mountPath: /etc/ceph-csi-config/ - name: keys-tmp-dir mountPath: /tmp/csi/keys + - name: ceph-config + mountPath: /etc/ceph/ - name: liveness-prometheus image: quay.io/cephcsi/cephcsi:canary args: @@ -221,6 +225,9 @@ spec: emptyDir: { medium: "Memory" } + - name: ceph-config + configMap: + name: ceph-config - name: ceph-csi-config configMap: name: ceph-csi-config diff --git a/deploy/rbd/kubernetes/csi-rbdplugin.yaml b/deploy/rbd/kubernetes/csi-rbdplugin.yaml index 7b7e7aa3f..999444170 100644 --- a/deploy/rbd/kubernetes/csi-rbdplugin.yaml +++ b/deploy/rbd/kubernetes/csi-rbdplugin.yaml @@ -113,6 +113,8 @@ spec: mountPath: /tmp/csi/keys - name: ceph-logdir mountPath: /var/log/ceph + - name: ceph-config + mountPath: /etc/ceph/ - name: liveness-prometheus securityContext: privileged: true @@ -171,6 +173,9 @@ spec: - name: lib-modules hostPath: path: /lib/modules + - name: ceph-config + configMap: + name: ceph-config - name: ceph-csi-config configMap: name: ceph-csi-config