Commit 2bcb4747 by Per Abich Committed by kmova

Fixing documentation to be correct for Kubernetes

Converted from openshift command (cherry picked from commit 5e95ea2ffe5c8205edd2a6425ea666dd44d90311)
parent c4a7e765
...@@ -20,7 +20,8 @@ Kubernetes: ...@@ -20,7 +20,8 @@ Kubernetes:
```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` $ NS=$(kubectl config get-contexts|grep -e "^\*" |awk '{print $5}')
$ NAMESPACE=${NS:-default}
$ sed -i'' "s/namespace:.*/namespace: $NAMESPACE/g" ./deploy/rbac.yaml $ sed -i'' "s/namespace:.*/namespace: $NAMESPACE/g" ./deploy/rbac.yaml
$ kubectl create -f deploy/rbac.yaml $ kubectl create -f deploy/rbac.yaml
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment