Code Monkey home page Code Monkey logo

kubeconsole's Introduction

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 ๐Ÿค“.

kubeconsole's People

Contributors

komish avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

komish

kubeconsole's Issues

Doesn't work on MacOS

Hey @craicoverflow . I just tried this out and unfortunately, it doesn't work on a Mac. Here is the output

bash: line 60: wget: command not found
tar: Error opening archive: Failed to open 'macos_darwin.tar.gz'
cp: macos_darwin/console: No such file or directory
bash: line 79: wget: command not found

Add support for OpenShift plugin

Motivation

It is possible to make this work as a plugin for OpenShift. Currently it only works for Kubernetes.

kubectl console would be oc plugin console.

How

No new code needs to be added. All that needs to change is a new Make command can be added (something like make install/oc.

Follow Extending the CLI

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.