ckube

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2017 License: MIT Imports: 1 Imported by: 0

README

Concurrent kubectl

Kelsey Hightower Approved! Build Status

A cli to simplify working with kubectl for some common workflows

Installation

Find the latest binaries here

Usage

ckube lets you think in terms of services instead of pods (mostly).

$ ckube

A CLI to simplify working with kubectl.

Usage:
  ckube [command]

Available Commands:
  exec        execute a command in a container
  help        Help about any command
  logs        get logs from a service
  ls          list pods in kubernetes
  top         View cpu and memory usage for pods

Flags:
      --context string     the kubernetes context (defaults to value currently used by kubectl)
  -h, --help               help for ckube
  -n, --namespace string   the kubernetes namespace (defaults to value currently used by kubectl)

Use "ckube [command] --help" for more information about a command.

Kubernetes services are often an abstraction over multiple pods, particularly if the replicas are scaled. If a k8s cluster has a service called nginx you could have several pods which might be named something like this:

nginx-3528986049-kpd4z
nginx-3528986049-71s10 
nginx-3528986049-f6mwf
nginx-3528986049-ltx6j
nginx-3528986049-m3cmm
nginx-3528986049-h8cnn
nginx-3528986049-6v4c1

Getting logs for the nginx service is easy with ckube

# single uspecified nginx pod:
ckube logs nginx

# all nginx pods
ckube logs nginx

# follow the logs
ckube logs nginx -f

Similar concurrent functionality exists for exec

Read the blog post about ckube here

Contributing

PR's accepted

If you are looking to build the project:

go get -d github.com/devonmoss/ckube
cd $GOPATH/src/github.com/devonmoss/ckube

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL