As we mentioned previously, OpenShift cluster administrators can create PV resources for future usage by OpenShift users.
This topic assumes that the OpenShift environment is up and running on the openshift.example.com node. You may use oc cluster up or do an advanced OpenShift installation by using Ansible.
As we mentioned previously, only cluster administrators can configure PVs. So, before you begin the following labs, you have to switch to the admin account:
# oc login -u system:admin
We recommend creating a new project to perform this persistent storage-related lab:
# oc new-project persistent-storage
The client will automatically change the current project to the newly created one.
In the upcoming examples, we will create the following PVs:
PV | Storage backend | Size |
pv-nfsvol1 | NFS | 2 GiB |
pv-gluster | GlusterFS | 3 GiB |
pv-iscsi | iSCSI | 1... |