Skip to content
/ kash Public

Exec sh wildcard for kubernetes pods and containers

Notifications You must be signed in to change notification settings

do87/kash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Kash

kash enables you to quickly get into a container running in a kubernetes pod

Current kash release relies on both kubectl and fzf

If you wish to use the older version, without fzf dependency, please refer to kash v1.0

Installation

MacOS & Linux

Assuming /usr/local/bin is in your PATH, simply run:

wget "https://raw.githubusercontent.com/do87/kash/v2.0/kash" \
  -O /usr/local/bin/kash && chmod +x /usr/local/bin/kash

How does it work?

run kash to list all pods running in the namespace you're pointing to

Example:

$ kash
[pods prompt]

To filter, simply add part of the pod name, i.e.

$ kash service-1
Pod some-service-1 Found
Choose a container:
[containers prompt]

It's also possible to filter by pod and container name by running:

$ kash service-1 api
Pod some-service-1 Found
Entering container service-1-api in pod some-service-1...
/ #

About

Exec sh wildcard for kubernetes pods and containers

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages