• Stars
    star
    132
  • Rank 274,205 (Top 6 %)
  • Language
    Go
  • License
    MIT License
  • Created about 7 years ago
  • Updated about 3 years ago

Reviews

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

Repository Details

A cli to simplify working with kubectl for some common workflows

Concurrent kubectl

Kelsey Hightower Approved! Build Status Go Report Card GitHub release License: MIT

A cli to simplify working with kubectl for some common workflows

Installation

Find the latest binaries here or use homebrew on macOS

brew tap canopytax/ckube
brew install ckube

Usage

$ ckube
A CLI to simplify working with kubectl.

Usage:
  ckube [command]

Available Commands:
  deployment  Get information about deployments
  exec        execute a command in a container
  help        Help about any command
  logs        get logs from a service
  ls          Interactive list of pods
  nodes       Lists pods grouped by node
  service     Interactive view of your services
  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
      --kubeconfig string   path to kubeconfig file to use for CLI requests (defaults to $KUBECONFIG or $HOME/.kube/config)
  -l, --labels string       Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
  -n, --namespace string    the kubernetes namespace (defaults to value currently used by kubectl)

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

Targeting pods can be burdensome (i.e. in a deployment with replicas). 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 -a

# follow the logs
ckube logs nginx -f

Similar concurrent functionality exists for exec

You can toggle through your services and see the associated pods. ckube service

You can use ckube nodes to show which pods are running on each node asciicast

Get an interactive view of your pods with ckube ls. You can further refine the prompt results by searching using /. Selecting a pod will print detailed pod information returned by kubectl describe

Read the blog post about ckube here

Contributing

PR's accepted

If you are looking to build the project or would like to contribute:

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

More Repositories

1

asyncpgsa

A wrapper around asyncpg for use with sqlalchemy
Python
417
star
2

sofe

Service Oriented Front-end
JavaScript
139
star
3

bandicoot

React rich text editor
JavaScript
54
star
4

webpack-system-register

A webpack plugin that wraps your bundle in a System.register
JavaScript
36
star
5

kremling

Embarrassingly simple css for React
JavaScript
36
star
6

rxws

A RESTful Reactive JavaScript Implementation on top of Web Sockets
JavaScript
20
star
7

auto-trace

A library that fixes all your stack trace problems.
JavaScript
14
star
8

s3-file-auth

Require github auth for viewing your s3 files
Python
11
star
9

aiohttp-oauth

Oauth middlewear for your aiohttp app.
Python
11
star
10

cpr-multiselect

Canopy React Multi-select Component
JavaScript
11
star
11

Json-Query-Language

PHP
10
star
12

single-spa-canopy

Some helpers for single-spa child apps at canopy
JavaScript
10
star
13

use-once

A helper for running react effects only once
JavaScript
9
star
14

system-svelte

SystemJS plugin for compiling Svelte components
JavaScript
8
star
15

react-disposable-modal

A reactive API for building modal components in React
JavaScript
7
star
16

canopy-styleguide-old

Canopy Style Guide
JavaScript
7
star
17

frontend-rfc

6
star
18

async-decorator

Async tools for React provided by a decorator
JavaScript
6
star
19

node-jspm-jasmine

Run jasmine tests on a jspm project, without karma or phantomjs
JavaScript
6
star
20

cpr-mask

A react masking input component
JavaScript
6
star
21

pgbadger-rds-cron

A cron for parsing rds logs with pgbadger
Python
6
star
22

cronboss

Simple docker cron container for running commands in other docker container
Python
5
star
23

cpr-select

A consistently styled cross-browser and keyboard friendly select component
JavaScript
5
star
24

cp-dotfiles

Some dotfile setups for people who want a jump start on things like vim and tmux.
Vim Script
5
star
25

react-disposable-decorator

decorator for handling observables
JavaScript
5
star
26

kremling-loader

Build kremling css without ampersands
JavaScript
5
star
27

redux-phunk

A redux middleware to make your actions phunktional.
JavaScript
4
star
28

disposable-component

A simple reactive API for mounting and unmounting components to the DOM
JavaScript
4
star
29

kremling.js.org

The documentation website for kremling
3
star
30

sofe-babel-plugin

synchronous-sofe-loader
JavaScript
3
star
31

cpr-tooltip

a React tooltip for heart-threatening situations
JavaScript
3
star
32

sofe-inspector

A tool for managing sofe services
JavaScript
3
star
33

GradientNavigationBar

GradientNavigationBar is a drop in subclass of UINavigationBar that easily allows you to set the background to be a radial gradient.
Swift
3
star
34

cp-autoscale-input

An angular directive for auto sizing and input based upon the content within it
JavaScript
2
star
35

laramandrill

Laravel Mandrill plugin!
PHP
2
star
36

canopytax.github.io

Canopy Tech Blog
HTML
2
star
37

canopy-react-error-boundary

A higher order component / decorator for creating error boundaries in React code.
JavaScript
2
star
38

canopy-webpack-config

Some defaults for webpack configs at canopy
JavaScript
2
star
39

system-amd-script

SystemJS plugin for script loading sofe services
JavaScript
2
star
40

eslint-config-canopy

A standard eslint config for Canopy frontend developers
JavaScript
2
star
41

sofe-cssmodules

CSS Modules with Sofe
JavaScript
2
star
42

cp-select

A consistently styled cross-browser select component
JavaScript
1
star
43

JQL

Python implementation of JQL, with a spec.
1
star
44

cp-progress-slat

A consistently styled progress slat that confirms to the CanopyTax style guide.
HTML
1
star
45

localproxy

A local reverse proxy (such as nginx) for handling many local docker containers.
1
star
46

bandicoot.js.org

The bandicoot.js.org documentation website
1
star
47

minimal-node

A minimal nodejs container built on alpine linux
1
star
48

shade

A Code coverage tool
1
star
49

quip-service

PHP
1
star
50

sofe-worker

Service Oriented Front-end Implemented in a Service Worker
1
star
51

cp-tooltip

A simple tooltip widget for the canopy style guide
JavaScript
1
star
52

brillo

Simple electron IPC using promises
JavaScript
1
star
53

browserslist-config-canopy

Canopy's browsers list config
JavaScript
1
star
54

jest-string-object-serializer

A jest snapshot serializer for String objects
JavaScript
1
star
55

rxws-recorder

rxws middleware to help read websocket requests and responses.
JavaScript
1
star
56

bandicoot-starter

A starter repo for https://bandicoot.js.org
JavaScript
1
star
57

react-async-decorator

A decorator component for loading asynchronous data
1
star
58

aiohttp-github-auth

Github auth middlewear for your aiohttp app
Python
1
star
59

static-server

Just a repo for a static server docker image
Dockerfile
1
star
60

logspit

A docker container for aggregating logs.
Python
1
star
61

bs-time-pick

A time picker directive
JavaScript
1
star
62

ci-test

a dummy project for testing different ci's
Python
1
star
63

draftJS-renderer

A simple parser for draft.js output.
1
star
64

cpr-autoscale-input

A React component for auto sizing an input based on the content within it
JavaScript
1
star
65

cp-progress-bar

A consistently styled progress bar that confirms to the CanopyTax style guide.
HTML
1
star