mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
97f8c4b677
This commit provides the option to pass in Ceph cluster-id instead of a MON list from the storage class. This helps in moving towards a stateless CSI implementation. Tested the following, - PV provisioning and staging using cluster-id in storage class - PV provisioning and staging using MON list in storage class Did not test, - snapshot operations in either forms of the storage class Signed-off-by: ShyamsundarR <srangana@redhat.com>
34 lines
1.4 KiB
YAML
34 lines
1.4 KiB
YAML
---
|
|
# This is a patch to the existing statefulset deployment of CSI rbdplugin.
|
|
# This is to be used when adding a new Ceph cluster to the CSI plugin.
|
|
# NOTE: Update csi-rbdplugin DaemonSet as well with similar patch
|
|
# Post substituting the <cluster-fsid> in all places execute,
|
|
# `kubectl patch statefulset csi-rbdplugin-provisioner --patch\
|
|
# "$(cat template-csi-rbdplugin-provisioner-patch.yaml)"`
|
|
# to patch the statefulset deployment.
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: csi-rbdplugin
|
|
volumeMounts:
|
|
- name: provisioner-secret-<cluster-fsid>
|
|
mountPath: "/etc/ceph-cluster-<cluster-fsid>-provisioner-secret"
|
|
readOnly: true
|
|
- name: publish-secret-<cluster-fsid>
|
|
mountPath: "/etc/ceph-cluster-<cluster-fsid>-publish-secret"
|
|
readOnly: true
|
|
- name: ceph-cluster-<cluster-fsid>
|
|
mountPath: "/etc/ceph-cluster-<cluster-fsid>/"
|
|
readOnly: true
|
|
volumes:
|
|
- name: provisioner-secret-<cluster-fsid>
|
|
secret:
|
|
secretName: ceph-cluster-<cluster-fsid>-provisioner-secret
|
|
- name: publish-secret-<cluster-fsid>
|
|
secret:
|
|
secretName: ceph-cluster-<cluster-fsid>-publish-secret
|
|
- name: ceph-cluster-<cluster-fsid>
|
|
configMap:
|
|
name: ceph-cluster-<cluster-fsid>
|