140 Red Hat OpenShift and IBM Cloud Paks on IBM Power Systems: Volume 1
10.Create the template environment file to store the PowerVC details:
11.Deploy the PowerVC FlexVolume Driver application from the template by using the 
environment file:
12.Verify the installation. You have one running volume-flex Pod per each node, and one 
volume-provisioner:
13.(Optional) Uninstall PowerVC FlexVolume Driver:
cat > ibm-powervc-k8s-volume-driver.env <<EOF_ibm-powervc-k8s-volume-driver.env
OPENSTACK_IP_OR_HOSTNAME=rbpvc01.domain.example.com
OPENSTACK_CRED_SECRET_NAME=powervc-secret
OPENSTACK_CERT_DATA=-----BEGIN CERTIFICATE----- MIIDf...[Output truncated]...s0wFTN 
-----END CERTIFICATE-----
OPENSTACK_PROJECT_NAME=ocp-project
IMAGE_PROVISIONER_REPO=ibmcom/power-openstack-k8s-volume-provisioner
IMAGE_PROVISIONER_TAG=1.0.2
IMAGE_FLEX_VOLUME_REPO=ibmcom/power-openstack-k8s-volume-flex
IMAGE_FLEX_VOLUME_TAG=1.0.2
SECURITY_SERVICE_ACCOUNT_NAME=default
EOF_ibm-powervc-k8s-volume-driver.env
oc process -f ibm-powervc-k8s-volume-driver-template.yaml 
--param-file=ibm-powervc-k8s-volume-driver.env |  oc create -f -
configmap/ibm-powervc-config created
storageclass.storage.k8s.io/ibm-powervc-k8s-volume-default created
deployment.apps/ibm-powervc-k8s-volume-provisioner created
daemonset.apps/ibm-powervc-k8s-volume-flex created
oc get pods
NAME                                                  READY     STATUS    RESTARTS   AGE
ibm-powervc-k8s-volume-flex-2jx8t                     1/1       Running   0          23s
ibm-powervc-k8s-volume-flex-fgjz6                     1/1       Running   0          23s
ibm-powervc-k8s-volume-flex-gb5xq                     1/1       Running   0          23s
ibm-powervc-k8s-volume-flex-kpqfk                     1/1       Running   0          23s
ibm-powervc-k8s-volume-flex-lp84r                     1/1       Running   0          23s
ibm-powervc-k8s-volume-flex-trl5t                     1/1       Running   0          23s
ibm-powervc-k8s-volume-provisioner-6cc7d64c4b-dfxsn   1/1       Running   0          23s
####### delete pods for powervc flex volume and start over #######
oc delete deployment ibm-powervc-k8s-volume-provisioner
oc delete ds ibm-powervc-k8s-volume-flex
oc delete cm ibm-powervc-config
oc delete sc ibm-powervc-k8s-volume-default
###### delete the template #######
oc delete template ibm-powervc-k8s-volume-driver
oc delete secret powervc-secret