PersistentVolume(s) for application resources

Create a Persistent Volume using a YAML file with NFS drive configuration. For resources, only a static Persistent Volume will be created, as all resources will be copied there in advance.

For user-input resources, here is a sample file named ibm-sccm-pv-ui.yaml:
kind: PersistentVolume
apiVersion: v1
metadata:
  name: ibm-sccm-pv-ui
  labels:
    app.kubernetes.io/name: ibm-scc-pv-ui
    app.kubernetes.io/instance: ibm-sccm
    app.kubernetes.io/managed-by: ibm-sccm-service
    helm.sh/chart: ibm-sccm
    release: ibm-sccm
spec:
  persistentVolumeReclaimPolicy: Retain
  storageClassName: manual # StorageClassName
  capacity:
    storage: 2Gi # Storage capacity for this PV
  accessModes:
    - ReadWriteOnce
  nfs:
    server: 111.22.333.444 # IP Address/Hostname of NFS Server
    path: /docker_volume/ #path of NFS server
    readOnly: false
After creating the above file, execute the following command to create the Kubernetes PersistentVolume resource for user input:
$ oc create -f ibm-sccm-pv-ui.yaml
Note: Inside this storage location, a directory named user_inputs must be created, and it should contain the necessary database drivers.
Run the following command to verify the creation of your Persistent Volume:
$ oc get pv