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 | bashwget -gO- https://raw.githubusercontent.com/craicoverflow/kubeconsole/v1.0.4/scripts/install.sh | bashIt'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
kubectlinstalledocinstalled (optional)
To install required dependencies:
go getTo run the program in development mode:
go run cmd/console.goTo build the binaries:
make buildAll PRs, issues and suggestions are welcome 🤓.