Description
An interactive kubernetes client featuring auto-complete using go-prompt.
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.
$ kube-prompt
>>> get pod
...
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
kube-prompt alternatives and similar packages
Based on the "Go Tools" category.
Alternatively, view kube-prompt alternatives based on common mentions on social networks and blogs.
-
The Go Play Space
Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more -
typex
[TOOL/CLI] - Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations. -
Viney's go-cache
A flexible multi-layer Go caching library to deal with in-memory and shared cache by adopting Cache-Aside pattern. -
gothanks
GoThanks automatically stars Go's official repository and your go.mod github dependencies, providing a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself. -
go-lock
go-lock is a lock library implementing read-write mutex and read-write trylock without starvation -
goroutines
It is an efficient, flexible, and lightweight goroutine pool. It provides an easy way to deal with concurrent tasks with limited resource. -
PDF to Image Converter Using Golang
This project will help you to convert PDF file to IMAGE using golang. -
docs
Automatically generate RESTful API documentation for GO projects - aligned with Open API Specification standard -
rescached
[mirror] Resolver (DNS) cache daemon. See https://sr.ht/~shulhan/rescached [Moved to: https://github.com/shuLhan/rescached] -
channelize
A websocket framework to manage outbound streams. Allowing to have multiple channels per connection that includes public and private channels. -
modver
Compare two versions of a Go module to check the version-number change required (major, minor, or patchlevel), according to semver rules. -
IP2Location.io Command Line
IP2Location.io command line to query IP geolocation data from IP2Location.io API -
num30/go-cache
An in-memory key:value store/cache (similar to Memcached) library that takes advantage of Go Generics
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of kube-prompt or a related project?
README
kube-prompt
An interactive kubernetes client featuring auto-complete using go-prompt.
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
- kube-shell: An integrated shell for working with the Kubernetes written in Python using python-prompt-toolkit.
Goal
Hopefully support following commands enough to operate kubernetes.
- [x]
get
Display one or many resources - [x]
describe
Show details of a specific resource or group of resources - [x]
create
Create a resource by filename or stdin - [x]
replace
Replace a resource by filename or stdin. - [x]
patch
Update field(s) of a resource using strategic merge patch. - [x]
delete
Delete resources by filenames, stdin, resources and names, or by resources and label selector. - [x]
edit
Edit a resource on the server - [x]
apply
Apply a configuration to a resource by filename or stdin - [x]
namespace
SUPERSEDED: Set and view the current Kubernetes namespace - [x]
logs
Print the logs for a container in a pod. - [x]
rolling-update
Perform a rolling update of the given ReplicationController. - [x]
scale
Set a new size for a Deployment, ReplicaSet, Replication Controller, or Job. - [x]
cordon
Mark node as unschedulable - [x]
drain
Drain node in preparation for maintenance - [x]
uncordon
Mark node as schedulable - [x]
attach
Attach to a running container. - [x]
exec
Execute a command in a container. - [x]
port-forward
Forward one or more local ports to a pod. - [x]
proxy
Run a proxy to the Kubernetes API server - [x]
run
Run a particular image on the cluster. - [x]
expose
Take a replication controller, service, or pod and expose it as a new Kubernetes Service - [x]
autoscale
Auto-scale a Deployment, ReplicaSet, or ReplicationController - [x]
rollout
rollout manages a deployment - [x]
label
Update the labels on a resource - [x]
annotate
Update the annotations on a resource - [x]
config
config modifies kubeconfig files - [x]
cluster-info
Display cluster info - [x]
api-versions
Print the supported API versions on the server, in the form of "group/version". - [x]
version
Print the client and server version information. - [x]
explain
Documentation of resources. - [x]
convert
Convert config files between different API versions - [x]
top
Display Resource (CPU/Memory/Storage) usage
Author
Masashi Shibata
- Twitter: @c_bata_
- Github: @c-bata
- Facebook: Masashi Shibata
LICENSE
This software is licensed under the MIT License (See [LICENSE](./LICENSE)).
*Note that all licence references and agreements mentioned in the kube-prompt README section above
are relevant to that project's source code only.