GithubHelp home page GithubHelp logo

edwardjrp / click Goto Github PK

View Code? Open in Web Editor NEW

This project forked from databricks/click

0.0 2.0 0.0 197 KB

The "Command Line Interactive Controller for Kubernetes"

License: Apache License 2.0

Rust 99.63% Shell 0.37%

click's Introduction

Click

Click is the Command Line Interactive Controller for Kubernetes. It's goal is to make managing a large number of Kubernetes clusters/objects quick and efficient.

A demo gif that shows a few features

Usage Model

Click is a REPL. When running there is a current active config which includes the current Kubernetes context, and optionally a namespace and Kubernetes object. Commands are then applied to the active config so it's not necessary to keep specifying what objects to target.

Installing / Building

You'll need rust and cargo. See here for instructions on how to get them.

Click is on crates.io, so you can just run cargo install to install it.

Alternately, to build it yourself, clone the click repository and run cargo build.

Running

If you used cargo install, you can just run click (assuming ~/.cargo/bin is in your PATH).

If you built from source, run ./target/debug/click. It's not recommended to use cargo run as that messes with Ctrl-C handling. (see: rust-lang/rustup#806)

Click looks in ~/.kube/config by default for you Kubernetes configuration. It also stores its own config in the .kube dir. You can change this with the --config option.

Once you're in the REPL, try typing help to see what you can do.

Prompt

The order of the prompt is [context][namespace][object].

The object changes color depending on what type of object it is. (e.g yellow for pods, blue for nodes and so on)

Why am I getting a BadDER error

If your Kubernetes cluster is using Node Authorization (https://kubernetes.io/docs/admin/authorization/node/) your API Server may be using a certificate with a DNS name like "system:something". This is technically a bad cert as DNS names can't have a colon in them, and since the WebPKI crate is more strict than Go, Click will not accept the cert from the API Server even though kubectl will.

For the moment, you can build click, then run the fix_bad_der.sh script that's in the util directory, and then run cargo clean, and then rebuild click. This patches WebPKI to accept the cert.

click's People

Contributors

nicklan avatar aarondav avatar

Watchers

Edward Rodriguez avatar  avatar

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.