dudash / openshift-wetty-client

Containerized OpenShift CLI tools accessible via your favorite web browser
Apache License 2.0
3 stars 8 forks source link
openshift

OpenShift wetty client

Containerized OpenShift CLI tools accessible via wetty

What is this?

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.

How do I use this?

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

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

WARNING

That is root inside the container not of the platform. But it adds an extra layer of security risk. So bewarned...