Popularity
7.9
Growing
Activity
5.4
Growing
1,294
21
82

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

Programming language: Go
Tags: Kubernetes     Command Line     Go Tools     Client     CLI    
Latest version: v1.0.10

kube-prompt alternatives and similar packages

Based on the "Go Tools" category

Do you think we are missing an alternative of kube-prompt or a related project?

Add another 'Go Tools' Package

README

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.10/kube-prompt_v1.0.10_darwin_amd64.zip
unzip kube-prompt_v1.0.10_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.10/kube-prompt_v1.0.10_linux_amd64.zip
unzip kube-prompt_v1.0.10_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.10/kube-prompt_v1.0.10_linux_386.zip
unzip kube-prompt_v1.0.10_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.10/kube-prompt_v1.0.10_linux_arm64.zip
unzip kube-prompt_v1.0.10_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.

  • [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

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.