138 Red Hat OpenShift and IBM Cloud Paks on IBM Power Systems: Volume 1
6.4  IBM PowerVC FlexVolume Driver
This section describes how to install the IBM PowerVC FlexVolume Driver. After installation, 
configure the persistent storage for Registry, and install the Prometheus Cluster Monitoring.
6.4.1  Deploying the IBM PowerVC FlexVolume Driver
Complete the following steps to install IBM PowerVC FlexVolume driver:
3. Create a project for Po werVC FlexVolume Driver:
4. Patch the project to clear the nodeSelector tag:
5. Assign the cluster-admin role to t he $NS project’s default service account:
6. Set the hostmount-anyuid source code control to the user root, or the user ID that was 
used to create the $NS project:
export NS=powervc-flexvoldrv
oc login -u system:admin
Logged into "https://ocp.domain.example.com:8443" as "system:admin" using existing 
credentials.
You have access to the following projects and can switch between them with 'oc project 
<projectname>':
...
Output truncated
...
Using project "default".
oc new-project $NS --description="PowerVC FlexVolume Driver for Containers" 
--display-name="PowerVC FlexVolume Driver"
Now using project "powervc-flexvoldrv" on server "https://ocp.domain.example.com:8443".
You can add applications to this project with the 'new-app' command. For example, try:
    oc new-app centos/ruby-25-centos7~https://github.com/sclorg/ruby-ex.git
to build a new example application in Ruby
oc project $NS
Already on project "powervc-flexvoldrv" on server "https://ocp.domain.example.com:8443
oc patch namespace $NS -p '{"metadata": {"annotations": 
{"openshift.io/node-selector": ""}}}'
namespace/powervc-flexvoldrv patched
oc adm policy add-cluster-role-to-user cluster-admin 
system:serviceaccount:$NS:default
cluster role "cluster-admin" added: "system:serviceaccount:powervc-flexvoldrv:default"
oc adm policy add-scc-to-user hostmount-anyuid 
system:serviceaccount:$NS:default
scc "hostmount-anyuid" added to: ["system:serviceaccount:powervc-flexvoldrv:default"]