Creating a Secret for Ceph
Create the secret required by Ceph on the Kubernetes management node, including configuring the csi-rbd-secret.yaml file.
- View and save the client.kubernetes key on the Ceph management node.
ceph auth get client.kubernetes
An example of the expected result:

- Create a csi-rbd-secret.yaml file.
vi csi-rbd-secret.yaml
- Press i to enter the insert mode and add the following content to the csi-rbd-secret.yaml file: Set userKey to the client.kubernetes key saved in 1.
apiVersion: v1 kind: Secret metadata: name: csi-rbd-secret namespace: default stringData: userID: kubernetes userKey: AQCsiTtl6jESExAALOiPVIEG7bjGXdzFUFCPtw==
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Deploy the secret.
kubectl apply -f csi-rbd-secret.yaml
Parent topic: Integrating Ceph with Kubernetes
