• Stars
    star
    1,785
  • Rank 26,048 (Top 0.6 %)
  • Language
    Go
  • License
    MIT License
  • Created about 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An interactive kubernetes client featuring auto-complete.

kube-prompt

Software License Go Report Card

An interactive kubernetes client featuring auto-complete using go-prompt.

demo

kube-prompt accepts the same commands as the kubectl, except you don't need to provide the kubectl prefix. So it doesn't require the additional cost to use this cli.

And you can integrate other commands via pipe (|).

>>> get pod | grep web
web-1144924021-2spbr        1/1     Running     4       25d
web-1144924021-5r1fg        1/1     Running     4       25d
web-1144924021-pqmfq        1/1     Running     4       25d

Installation

Downloading standalone binary

Binaries are available from github release.

macOS (darwin) - amd64
wget https://github.com/c-bata/kube-prompt/releases/download/v1.0.11/kube-prompt_v1.0.11_darwin_amd64.zip
unzip kube-prompt_v1.0.11_darwin_amd64.zip
chmod +x kube-prompt
sudo mv ./kube-prompt /usr/local/bin/kube-prompt
Linux - amd64
wget https://github.com/c-bata/kube-prompt/releases/download/v1.0.11/kube-prompt_v1.0.11_linux_amd64.zip
unzip kube-prompt_v1.0.11_linux_amd64.zip
chmod +x kube-prompt
sudo mv ./kube-prompt /usr/local/bin/kube-prompt
Linux - i386
wget https://github.com/c-bata/kube-prompt/releases/download/v1.0.11/kube-prompt_v1.0.11_linux_386.zip
unzip kube-prompt_v1.0.11_linux_386.zip
chmod +x kube-prompt
sudo mv ./kube-prompt /usr/local/bin/kube-prompt
Linux - arm64
wget https://github.com/c-bata/kube-prompt/releases/download/v1.0.11/kube-prompt_v1.0.11_linux_arm64.zip
unzip kube-prompt_v1.0.11_linux_arm64.zip
chmod +x kube-prompt
sudo mv ./kube-prompt /usr/local/bin/kube-prompt

Using Homebrew (macOS)

$ brew install c-bata/kube-prompt/kube-prompt

Arch Linux

An unofficial AUR package kube-prompt is available. Install instructions can be found on the Arch wiki.

Building from source

$ GO111MODULE=on go build .

To create a multi-platform binary, use the cross command via make:

$ make cross

Similar projects

Goal

Hopefully support following commands enough to operate kubernetes.

  • get Display one or many resources
  • describe Show details of a specific resource or group of resources
  • create Create a resource by filename or stdin
  • replace Replace a resource by filename or stdin.
  • patch Update field(s) of a resource using strategic merge patch.
  • delete Delete resources by filenames, stdin, resources and names, or by resources and label selector.
  • edit Edit a resource on the server
  • apply Apply a configuration to a resource by filename or stdin
  • namespace SUPERSEDED: Set and view the current Kubernetes namespace
  • logs Print the logs for a container in a pod.
  • rolling-update Perform a rolling update of the given ReplicationController.
  • scale Set a new size for a Deployment, ReplicaSet, Replication Controller, or Job.
  • cordon Mark node as unschedulable
  • drain Drain node in preparation for maintenance
  • uncordon Mark node as schedulable
  • attach Attach to a running container.
  • exec Execute a command in a container.
  • port-forward Forward one or more local ports to a pod.
  • proxy Run a proxy to the Kubernetes API server
  • run Run a particular image on the cluster.
  • expose Take a replication controller, service, or pod and expose it as a new Kubernetes Service
  • autoscale Auto-scale a Deployment, ReplicaSet, or ReplicationController
  • rollout rollout manages a deployment
  • label Update the labels on a resource
  • annotate Update the annotations on a resource
  • config config modifies kubeconfig files
  • cluster-info Display cluster info
  • api-versions Print the supported API versions on the server, in the form of "group/version".
  • version Print the client and server version information.
  • explain Documentation of resources.
  • convert Convert config files between different API versions
  • top Display Resource (CPU/Memory/Storage) usage

Author

Masashi Shibata

LICENSE

This software is licensed under the MIT License (See LICENSE).

More Repositories

1

go-prompt

Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.
Go
5,254
star
2

goptuna

A hyperparameter optimization framework, inspired by Optuna.
Go
256
star
3

rtmp

Server implementation of Adobe's RTMP 1.0 protocol in Go.
Go
138
star
4

practical-django

書籍「実践Django Pythonによる本格Webアプリケーション開発 (翔泳社)」サンプルコード
Python
108
star
5

gh-prompt

An interactive GitHub CLI featuring auto-complete.
Go
54
star
6

pysearch

Web crawler and Search engine in Python.
Python
51
star
7

outlier-utils

Utility library for detecting and removing outliers from normally distributed datasets using the Smirnov-Grubbs test.
Python
50
star
8

systracer

Yet another system call tracer written in Go.
Go
45
star
9

pandas-validator

Validation Library for pandas' DataFrame and Series.
Python
44
star
10

jpandas

Implementation of Pandas (Python Data Analysis Library) on java.
Java
44
star
11

react-native-focus-scroll

React Native Library to detect children that are focused on ScrollView.
JavaScript
38
star
12

chalice-linebot

LINE BOT on AWS Lambda + API Gateway built with Chalice
Python
31
star
13

django-auth-example

Sample project for my talk at DjangoCongress JP 2018.
Python
26
star
14

db_tutorial

Writing a sqlite clone from scratch in Rust (and Python3 for testing). Thanks @cstack !
Rust
26
star
15

webframework-in-python

"How to develop WSGI WEB Framework" talked at PyConJP 2016
Python
25
star
16

xpcap

Cross-platform Packet Capture which supports Linux and macOS(BSD) in 1000 LOC without depending on libpcap.
C
25
star
17

datascience-notebook

Data Science Notebooks in Python3 (ja)
Jupyter Notebook
21
star
18

feedy

RSS Feed Fetching Framework for Python
Python
20
star
19

gosearch

Web crawler and Search engine in Golang.
Go
18
star
20

concurrency-in-python

Tutorial of concurrency in Python3 (Multi-threading, Multi-processing, Asynchronous programming)
Python
15
star
21

sample-c2goasm

Calling C functions optimized by LLVM Auto-Vectorization after converting to Go Plan9 Assembly using c2goasm.
Assembly
15
star
22

comet

Desktop application for displaying the hashtag tweets when you talk at a conference.
JavaScript
13
star
23

TDD-with-Django

QiitaのDjango入門をTDDで書いてみる
Python
8
star
24

mypyc_ipython

IPython magic command interface for interactive work with mypyc, a compiler from type-annotated Python to C extensions.
Python
7
star
25

ng2-card

NOT MAINTAINED: Card view component for angular2
TypeScript
7
star
26

goptuna-isucon9q

Applying bayesian optimization to the parameters of MySQL, Nginx and Go web applications.
Go
7
star
27

go-neural-network

WIP: Neural Network Implementation for Golang.
Go
6
star
28

django-httpbench

HTTP load testing tools for Django. Like an apache bench but requests are sent from authenticated users.
Python
5
star
29

google-translate-po

Auto-input po-style translation files using Google Translate API.
Python
5
star
30

goptuna-bayesopt

Goptuna sampler for Gaussian Process based bayesian optimization using d4l3k/go-bayesopt.
Go
4
star
31

django-api-practices

Sample source code for my talk at PyConJP 2018.
Python
4
star
32

c-bata.github.io

This repository is my portfolio web site.
HTML
4
star
33

benchmark-warm-starting-cmaes

Benchmark code for Warm Starting CMA-ES (PR: https://github.com/optuna/optuna/pull/2307)
Python
4
star
34

github-actions-kurobako

GitHub Action to generate kurobako report and comment it to the pull request.
Python
4
star
35

sandbox-atcoder

C++
3
star
36

c-bata

README for @c-bata
3
star
37

mdnote

Markdown editor with React.js, Babel and Electron.
JavaScript
3
star
38

django-unsecure-examples

Django projects to reproduce CSRF, XSS, SQL injection and Clickjacking.
Python
3
star
39

lambda-thumbnail-generator

Generating Thumbnail from S3 using AWS Lambda, Python2 and Pillow
Python
3
star
40

akashipy

兵庫県明石市で開催している Python勉強会 #akashipy の資料やソースコード
2
star
41

optuna-memorydump

Dump Optuna in-memory storage to RDB storage. This tool ensures idempotence and thread-safe.
Python
2
star
42

pym

NOT MAINTAINED. Please use python-build (See https://github.com/yyuu/pyenv/tree/master/plugins/python-build)
Shell
2
star
43

onnx-remove-random-normal

Automatically replace ONNX's RandomNormal node with Constant node.
Python
2
star
44

django-pygments-renderer

Provides functionality for syntax highlighting using Pygments.
Python
2
star
45

go-actions

[Deprecated] I recommend you to use JavaScript to write the custom Github actions now.
Go
2
star
46

rexecute

Re-execute a command when specified files are modified.
Makefile
1
star
47

katib-goptuna-example

An example project to run Goptuna based CMA-ES suggestion service on Katib for https://github.com/kubeflow/katib/pull/1131
Python
1
star
48

mkdocs-term-validator

mkdocs port of https://github.com/shimizukawa/sphinx-term-validator
Python
1
star
49

awesome-python-webapps

A curated list of awesome python web development libraries.
1
star
50

mlcamp-adult-competition

Python
1
star
51

JavaPaint

Java+Swingでお絵かきソフト
Java
1
star
52

talks

WIP: slide viewer for my talk.
HTML
1
star
53

django-label-tag-attr

Add css classes and html tag attributes to django form's label.
Python
1
star
54

Algorithm

アルゴリズムやデータ構造の考え方 & ソースコードをメモ
C
1
star