Skip to content

kubectl and oc plugin to open the server address in your browser

Notifications You must be signed in to change notification settings

craicoverflow/kubeconsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubeconsole

kubeconsole is a plugin for kubectl and oc which opens the URL of your server in your browser.

Installation

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

Usage

It's really simple to install.

kubectl

To use this plugin with kubectl, simply enter the following command:

$ kubectl console
Opening in browser...

oc

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...

Flags

  • --url - Displays the server URL in the terminal, instead of opening the browser.

Development

Requirements

  • Go >= 1.11
  • kubectl installed
  • oc installed (optional)

Setup

To install required dependencies:

go get

Running

To run the program in development mode:

go run cmd/console.go

Building

To build the binaries:

make build

Contributing

All PRs, issues and suggestions are welcome 🤓.