All Projects → databricks → Click

databricks / Click

Licence: apache-2.0
The "Command Line Interactive Controller for Kubernetes"

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to Click

Mojo Weixin
使用Perl语言(不会没关系)编写的个人账号微信/weixin/wechat客户端框架(非GUI),可通过插件提供基于HTTP协议的api接口供其他语言或系统调用
Stars: ✭ 1,181 (-1.42%)
Mutual labels:  cli
Fbi
Node.js workflow tool
Stars: ✭ 74 (-93.82%)
Mutual labels:  cli
Schematics
🔧 Schematics for @ngxs/store
Stars: ✭ 74 (-93.82%)
Mutual labels:  cli
Nexmo Cli
Nexmo CLI (Command Line Interface)
Stars: ✭ 73 (-93.91%)
Mutual labels:  cli
Shark
A CLI to Interact with DigitalOcean
Stars: ✭ 74 (-93.82%)
Mutual labels:  cli
Php codesniffer
PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations. PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.
Stars: ✭ 9,004 (+651.59%)
Mutual labels:  cli
Sandmap
Nmap on steroids. Simple CLI with the ability to run pure Nmap engine, 31 modules with 459 scan profiles.
Stars: ✭ 1,180 (-1.5%)
Mutual labels:  cli
Vcli
Vertica CLI with auto-completion and syntax highlighting
Stars: ✭ 75 (-93.74%)
Mutual labels:  cli
Photosorcery
🌄 small CLI for converting and merging images
Stars: ✭ 74 (-93.82%)
Mutual labels:  cli
Image To Xls
A simple tool to make ascii art from an image using excel colored cells.
Stars: ✭ 75 (-93.74%)
Mutual labels:  cli
Nodo
☑ Command line TODO app
Stars: ✭ 73 (-93.91%)
Mutual labels:  cli
Scritch
A small CLI to help you write sharable scripts for your team
Stars: ✭ 74 (-93.82%)
Mutual labels:  cli
Navi
An interactive cheatsheet tool for the command-line
Stars: ✭ 10,055 (+739.32%)
Mutual labels:  cli
Github Files Fetcher
Download a specific folder or file from a GitHub repo through command line
Stars: ✭ 73 (-93.91%)
Mutual labels:  cli
Console Jedi
Console application for Bitrix Framework
Stars: ✭ 75 (-93.74%)
Mutual labels:  cli
Listr2
NodeJS Task List derived from the best! Create beautiful CLI interfaces via easy and logical to implement task lists that feel alive and interactive.
Stars: ✭ 73 (-93.91%)
Mutual labels:  cli
Radon
Various code metrics for Python code
Stars: ✭ 1,193 (-0.42%)
Mutual labels:  cli
Hr
A horizontal 📏 for your terminal
Stars: ✭ 1,195 (-0.25%)
Mutual labels:  cli
Rdcli
The simple way to download and unrestrict DDL files, torrents and magnets
Stars: ✭ 75 (-93.74%)
Mutual labels:  cli
Console
The Console component eases the creation of beautiful and testable command line interfaces.
Stars: ✭ 8,988 (+650.25%)
Mutual labels:  cli

Click


Click is the Command Line Interactive Controller for Kubernetes. Its purpose is to manage a large number of Kubernetes clusters/objects quickly and efficiently.

Code Status

Build Status

CHANGELOG

See the CHANGELOG for a release history.

Demo Screencast

A demo gif that shows a few features

Usage Model

Click is a REPL. When running Click, 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

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 click to install it.

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

Arch Linux

There is an aur available.

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, or do cargo run.

Click looks in ~/.kube/config by default for your Kubernetes configuration. It also stores its own config in the .kube dir. You can change this with the --config option. If KUBECONFIG is set, it will use any files found there as the kubernetes config files.

Once you're in the REPL, type 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)

Supported Authentication

Click currently supports the following ways of authenticating to a Kubernetes clusters:

  • token
  • username / password
  • private key / certificate
  • gke style authentication provider

GKE Support

For Google Kubernetes Engine, Click supports reading the token already in the kube config file. If that token has expired, Click will request a new token and use that. It does not save the new token back into the config file (yet).

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. Since the WebPKI crate is more strict than Go, Click will not accept the cert from the API Server even though kubectl will.

To temporarily patch WebPKI to accept the cert:

  1. Build Click
  2. Run the fix_bad_der.sh script that is in the util directory
  3. Run cargo clean
  4. Rebuild Click
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].