Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 13. Managing container storage interface (CSI) component placements
Each cluster consists of a number of dedicated nodes such as infra and storage nodes. However, an infra node with a custom taint will not be able to use OpenShift Data Foundation Persistent Volume Claims (PVCs) on the node. So, if you want to use such nodes, you can set tolerations to bring up csi-plugins on the nodes.
Procedure
Edit the configmap to add the toleration for the custom taint. Remember to save before exiting the editor.
oc edit configmap rook-ceph-operator-config -n openshift-storage
$ oc edit configmap rook-ceph-operator-config -n openshift-storageCopy to Clipboard Copied! Toggle word wrap Toggle overflow Display the
configmapto check the added toleration.oc get configmap rook-ceph-operator-config -n openshift-storage -o yaml
$ oc get configmap rook-ceph-operator-config -n openshift-storage -o yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output of the added toleration for the taint,
nodetype=infra:NoSchedule:Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteEnsure that all non-string values in the Tolerations value field has double quotation marks. For example, the values
truewhich is of type boolean, and1which is of type int must be input as "true" and "1".Restart the
rook-ceph-operatorif thecsi-cephfsplugin-* andcsi-rbdplugin-* pods fail to come up on their own on the infra nodes.oc delete -n openshift-storage pod <name of the rook_ceph_operator pod>
$ oc delete -n openshift-storage pod <name of the rook_ceph_operator pod>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example :
oc delete -n openshift-storage pod rook-ceph-operator-5446f9b95b-jrn2j
$ oc delete -n openshift-storage pod rook-ceph-operator-5446f9b95b-jrn2j pod "rook-ceph-operator-5446f9b95b-jrn2j" deletedCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification step
Verify that the csi-cephfsplugin-* and csi-rbdplugin-* pods are running on the infra nodes.