All Projects → CanopyTax → Ckube

CanopyTax / Ckube

Licence: mit
A cli to simplify working with kubectl for some common workflows

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Ckube

Cinf
Command line tool to view namespaces and cgroups, useful for low-level container prodding
Stars: ✭ 389 (+206.3%)
Mutual labels:  cli, containers
Frakti
The hypervisor-based container runtime for Kubernetes.
Stars: ✭ 630 (+396.06%)
Mutual labels:  pod, containers
Bpfd
Framework for running BPF programs with rules on Linux as a daemon. Container aware.
Stars: ✭ 396 (+211.81%)
Mutual labels:  cli, containers
Devops Guide
DevOps Guide - Development to Production all configurations with basic notes to debug efficiently.
Stars: ✭ 4,119 (+3143.31%)
Mutual labels:  containers, kubernetes-monitoring
Tent
Podman (https://podman.io/) based development-only dependency manager for Linux
Stars: ✭ 69 (-45.67%)
Mutual labels:  cli, containers
Cw
The best way to tail AWS CloudWatch Logs from your terminal
Stars: ✭ 368 (+189.76%)
Mutual labels:  cli, logs
Geodesic
🚀 Geodesic is a DevOps Linux Distro. We use it as a cloud automation shell. It's the fastest way to get up and running with a rock solid Open Source toolchain. ★ this repo! https://slack.cloudposse.com/
Stars: ✭ 629 (+395.28%)
Mutual labels:  containers, kubectl
kubectl-tmux-logs
A kubectl plugin to display container logs within separate tmux panes
Stars: ✭ 19 (-85.04%)
Mutual labels:  logs, kubectl
Saw
Fast, multi-purpose tool for AWS CloudWatch Logs
Stars: ✭ 1,071 (+743.31%)
Mutual labels:  cli, logs
Bane
Custom & better AppArmor profile generator for Docker containers.
Stars: ✭ 902 (+610.24%)
Mutual labels:  cli, containers
Kubectl Plugins
A Collection of Plugins for kubectl Integration (exec as any user, context switching, etc).
Stars: ✭ 340 (+167.72%)
Mutual labels:  pod, kubectl
Zoya
Truly highly composable logging utility
Stars: ✭ 116 (-8.66%)
Mutual labels:  cli, logs
Img
Standalone, daemon-less, unprivileged Dockerfile and OCI compatible container image builder.
Stars: ✭ 3,512 (+2665.35%)
Mutual labels:  cli, containers
Fubectl
Reduces repetitive interactions with kubectl
Stars: ✭ 370 (+191.34%)
Mutual labels:  cli, kubectl
Dockly
Immersive terminal interface for managing docker containers and services
Stars: ✭ 3,034 (+2288.98%)
Mutual labels:  cli, containers
Kubelive
kubectl tool reinvented to be more reactive and interactive 🔥
Stars: ✭ 497 (+291.34%)
Mutual labels:  cli, kubectl
Cypress Terminal Report
Better terminal and file output for cypress test logs.
Stars: ✭ 200 (+57.48%)
Mutual labels:  cli, logs
Popper
Container-native task automation engine.
Stars: ✭ 216 (+70.08%)
Mutual labels:  cli, containers
Binci
🐳 Containerize your development workflow.
Stars: ✭ 671 (+428.35%)
Mutual labels:  cli, containers
Reg
Docker registry v2 command line client and repo listing generator with security checks.
Stars: ✭ 1,485 (+1069.29%)
Mutual labels:  cli, containers

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].