Containerized OpenShift CLI tools accessible via wetty
This provides a web console to a pod with the oc CLI tool available. That's it.
Need oc but don't have a terminal or the ability to install anything? Just run this as a pod in your project - or run it to share for a whole team.
You need to be a cluster admin or have your cluster admin relax the SCC restrictions in your cluster so that this image is allow to run as root. The command for that is:
oc adm policy add-scc-to-group anyuid system:authenticated
Now you can
oc new-project occli
oc new-app quay.io/jasonredhat/openshift-wetty-client
oc create route edge --service=openshift-wetty-client --port=8888
Navigate to the exposed route and login as one of the available users. There are 60 users created in the Dockerfile with usernames: user1-user60 and password: password1-password60, respectively.
Now in that wetty terminal login to your OpenShift cluster of choice by typing the cluster URL when prompted:
Server [https://localhost:8443]: mycluster.awesomeland.com
(Note: If the username and password of the wetty user match the openshift user the previous prompt may not appear)
and run whatever commands you want:
oc get pods --all-namespaces
That is root inside the container not of the platform. But it adds an extra layer of security risk. So bewarned...