Skip to content

Commit

Permalink
fixes perms for online and updates docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhausenblas committed Oct 21, 2018
1 parent e3c9067 commit b759b36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions online/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

To launch `kubed-sh` containerized, as a Kubernetes deployment, do:

```
```shell
$ kubectl create ns kd
$ ./launch.sh kd
```

Now you can access `kubed-sh` in your favorite browser at `http://localhost:8888` on you local machine.
Now you can access `kubed-sh` in your favorite browser at `http://localhost:8888` on you local machine.

When you're done, simply delete the namespace `kd` and with it all its resources will be removed:

```shell
$ kubectl delete ns kd
```
2 changes: 1 addition & 1 deletion online/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ NAMESPACE="${1:-default}"

# set permissions
kubectl -n $NAMESPACE create sa kubed-sh
kubectl -n $NAMESPACE create rolebinding givekdsuperpower \
kubectl -n $NAMESPACE create clusterrolebinding givekdsuperpower \
--clusterrole=cluster-admin \
--serviceaccount=$NAMESPACE:kubed-sh \
--namespace=$NAMESPACE
Expand Down

0 comments on commit b759b36

Please sign in to comment.