2019-03-02 17:29:52 +00:00
|
|
|
---
|
|
|
|
# This is a patch to the existing daemonset deployment of CSI rbdplugin.
|
|
|
|
# This is to be used when adding a new Ceph cluster to the CSI plugin.
|
|
|
|
# NOTE: Update csi-rbdplugin-provisioner StatefulSet as well with similar patch
|
|
|
|
# Post substituting the <cluster-fsid> in all places execute,
|
|
|
|
# `kubectl patch daemonset csi-rbdplugin --patch\
|
|
|
|
# "$(cat template-csi-rbdplugin-patch.yaml)"`
|
|
|
|
# to patch the statefulset deployment.
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: csi-rbdplugin
|
|
|
|
volumeMounts:
|
|
|
|
- name: ceph-cluster-<cluster-fsid>
|
2019-03-07 21:03:33 +00:00
|
|
|
mountPath: "/etc/csi-config/ceph-cluster-<cluster-fsid>"
|
2019-03-02 17:29:52 +00:00
|
|
|
readOnly: true
|
|
|
|
volumes:
|
|
|
|
- name: ceph-cluster-<cluster-fsid>
|
2019-03-07 21:03:33 +00:00
|
|
|
secret:
|
|
|
|
secretName: ceph-cluster-<cluster-fsid>
|