kubeconsole
is a plugin for kubectl
and oc
which opens the URL of your server in your browser.
To install the binary, you can use cURL or Wget:
curl -o- https://raw.githubusercontent.com/craicoverflow/kubeconsole/v1.0.4/scripts/install.sh | bash
wget -gO- https://raw.githubusercontent.com/craicoverflow/kubeconsole/v1.0.4/scripts/install.sh | bash
It's really simple to install.
To use this plugin with kubectl
, simply enter the following command:
$ kubectl console
Opening in browser...
You can also use this plugin with oc
.
To use with oc
>= 4, enter:
$ oc console
Opening in browser...
To use oc
< 4, enter:
$ oc plugin console
Opening in browser...
--url
- Displays the server URL in the terminal, instead of opening the browser.
- Go >= 1.11
kubectl
installedoc
installed (optional)
To install required dependencies:
go get
To run the program in development mode:
go run cmd/console.go
To build the binaries:
make build
All PRs, issues and suggestions are welcome 🤓.