2019-03-02 17:29:52 +00:00
|
|
|
---
|
|
|
|
# This is a patch to the existing daemonset deployment of CSI rbdplugin.
|
2019-03-12 15:57:36 +00:00
|
|
|
#
|
|
|
|
# This is to be used when using `clusterID` instead of monitors or
|
|
|
|
# monValueFromSecret in the StorageClass to specify the Ceph cluster to
|
|
|
|
# provision storage from, AND when the value of `--configroot` option to the
|
|
|
|
# CSI pods is NOT "k8s_objects".
|
|
|
|
#
|
|
|
|
# This patch file, patches in the specified secret for the 'clusterID' as a
|
|
|
|
# volume, instead of the Ceph CSI plugin actively fetching and using kubernetes
|
|
|
|
# secrets.
|
|
|
|
#
|
|
|
|
# Post substituting the <cluster-id> in all places execute,
|
2019-03-02 17:29:52 +00:00
|
|
|
# `kubectl patch daemonset csi-rbdplugin --patch\
|
|
|
|
# "$(cat template-csi-rbdplugin-patch.yaml)"`
|
2019-03-13 13:58:34 +00:00
|
|
|
# to patch the daemonset deployment.
|
|
|
|
#
|
|
|
|
# `kubectl patch statefulset csi-rbdplugin-provisioner --patch\
|
|
|
|
# "$(cat template-csi-rbdplugin-patch.yaml)"`
|
2019-03-02 17:29:52 +00:00
|
|
|
# to patch the statefulset deployment.
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: csi-rbdplugin
|
|
|
|
volumeMounts:
|
2019-03-12 15:57:36 +00:00
|
|
|
- name: ceph-cluster-<cluster-id>
|
|
|
|
mountPath: "/etc/csi-config/ceph-cluster-<cluster-id>"
|
2019-03-02 17:29:52 +00:00
|
|
|
readOnly: true
|
|
|
|
volumes:
|
2019-03-12 15:57:36 +00:00
|
|
|
- name: ceph-cluster-<cluster-id>
|
2019-03-07 21:03:33 +00:00
|
|
|
secret:
|
2019-03-12 15:57:36 +00:00
|
|
|
secretName: ceph-cluster-<cluster-id>
|