From 4f48612c2c576ce60440192fec30752914d61e99 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Thu, 23 Sep 2021 15:12:40 +0530 Subject: [PATCH] doc/rbd/rbd-kubernetes: add ceph.conf configmap Signed-off-by: Madhu Rajanna --- doc/rbd/rbd-kubernetes.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/doc/rbd/rbd-kubernetes.rst b/doc/rbd/rbd-kubernetes.rst index 1be9a0f1335..ccec4813a3a 100644 --- a/doc/rbd/rbd-kubernetes.rst +++ b/doc/rbd/rbd-kubernetes.rst @@ -134,6 +134,29 @@ Once generated, store the new `ConfigMap` object in Kubernetes:: $ kubectl apply -f csi-kms-config-map.yaml +Recent versions of `ceph-csi` also require yet another `ConfigMap` object +to define Ceph configuration to add to ceph.conf file inside CSI containers:: + + $ cat < ceph-config-map.yaml + --- + apiVersion: v1 + kind: ConfigMap + data: + ceph.conf: | + [global] + auth_cluster_required = cephx + auth_service_required = cephx + auth_client_required = cephx + # keyring is a required key and its value should be empty + keyring: | + metadata: + name: ceph-config + EOF + +Once generated, store the new `ConfigMap` object in Kubernetes:: + + $ kubectl apply -f ceph-config-map.yaml + Generate `ceph-csi` cephx `Secret` ---------------------------------- -- 2.39.5