Update README.md
Replace namespace in `./deploy/deployment.yaml` as well for OpenShift deployments
This commit is contained in:
parent
5e1b342945
commit
f552bc6a79
|
|
@ -58,7 +58,7 @@ On OpenShift the service account used to bind volumes does not have the necessar
|
||||||
```sh
|
```sh
|
||||||
# Set the subject of the RBAC objects to the current namespace where the provisioner is being deployed
|
# Set the subject of the RBAC objects to the current namespace where the provisioner is being deployed
|
||||||
$ NAMESPACE=`oc project -q`
|
$ NAMESPACE=`oc project -q`
|
||||||
$ sed -i'' "s/namespace:.*/namespace: $NAMESPACE/g" ./deploy/rbac.yaml
|
$ sed -i'' "s/namespace:.*/namespace: $NAMESPACE/g" ./deploy/rbac.yaml ./deploy/deployment.yaml
|
||||||
$ oc create -f deploy/rbac.yaml
|
$ oc create -f deploy/rbac.yaml
|
||||||
$ oc adm policy add-scc-to-user hostmount-anyuid system:serviceaccount:$NAMESPACE:nfs-client-provisioner
|
$ oc adm policy add-scc-to-user hostmount-anyuid system:serviceaccount:$NAMESPACE:nfs-client-provisioner
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue