PersistentVolume(s) for application resources
To create a Persistent Volume, use a yaml file with NFS drive configuration declared. For Persistent Volume for resources, only static Persistent Volume will be created, because all resources will be copied there in advance.
Following is sample
ibm-sccm-pv-ui.yaml
file for user input
resources: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 this file, create user input Kubernetes PersistentVolume resource using
following command:
$ oc create -f ibm-sccm-pv-ui.yaml
Note: Within this storage location, you need to create a directory named
user_inputs
, and inside this directory, place the necessary database
drivers.Invoke the following command to verify if your Persistence Volume is
created:
$ oc get pv