Skip to content

deniskrumko/kube-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kube-cli

PyPI version Python versions License Downloads

Command line interface for Kubernetes that simplifies usage of kubectl.

☠️ This project is no longer supported. It's not quite usefull in this shape. It's basically how I used it on my prev job.

I recommend you to use K9S instead and live a happy life 👌

Installation

pip install kube-cli

Requirements

  • python 3.6 or higher
  • kubectl
  • kubectl config file in ~/.kube/config

How to use

# show help
kube help

# List all namespaces / pods
kube all ns
kube all pods

# Find namespace / pod
kube find ns <query>
kube find pod <query>

# Operations with namespace
kube <namespace>
kube <namespace> pods

# Scaling deployments
kube <namespace> scale
kube <namespace> scale <deployment>
kube <namespace> scale <deployment> <value>

# Operations with pod
kube <namespace> <pod> logs
kube <namespace> <pod> logs -f
kube <namespace> <pod> bash

Fuzzy search

Fuzzy search is a killing feature that allows to search namespaces and pods by short equivalents.

For example, following commands are equal:

kube 1234 redismetric logs

kube jira-1234 rd-jira-5103-redis-metrics-57dff4f8b7-5c49k logs

About

CLI for Kubernetes that simplifies usage of kubectl

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages