All Projects → gabeduke → kubectl-iexec

gabeduke / kubectl-iexec

Licence: MIT License
Kubectl plugin to interactively exec into a pod

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to kubectl-iexec

kubectl-secretdata
A kubectl plugin for viewing decoded Secret data with search flags.
Stars: ✭ 37 (-63.73%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kubectl-plugin-ssh-jump
A kubectl plugin to access nodes or remote services using a SSH jump Pod
Stars: ✭ 117 (+14.71%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kube-lineage
A CLI tool to display all dependencies or dependents of an object in a Kubernetes cluster.
Stars: ✭ 238 (+133.33%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kubectlsafe
Safe operations in kubectl with plugin kubectlsafe
Stars: ✭ 36 (-64.71%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kubectl-janitor
List Kubernetes objects in a problematic state
Stars: ✭ 48 (-52.94%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kubectl-gs
kubectl plugin helping with custom resources by Giant Swarm
Stars: ✭ 36 (-64.71%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
Kubectl Tree
kubectl plugin to browse Kubernetes object hierarchies as a tree 🎄 (star the repo if you are using)
Stars: ✭ 1,962 (+1823.53%)
Mutual labels:  kubectl, kubectl-plugins, kubectl-plugin
kubectl-sql
kubectl-sql is a kubectl plugin that use SQL like language to query the Kubernetes cluster manager
Stars: ✭ 50 (-50.98%)
Mutual labels:  kubectl, kubectl-plugin
kubectl-passman
kubectl plugin that provides the missing link/glue between common password managers and kubectl
Stars: ✭ 69 (-32.35%)
Mutual labels:  kubectl-plugins, kubectl-plugin
kubectl-df-pv
kubectl plugin - giving admins df (disk free) like utility for persistent volumes
Stars: ✭ 256 (+150.98%)
Mutual labels:  kubectl, kubectl-plugin
Kubectl Debug
Debug your pod by a new container with every troubleshooting tools pre-installed
Stars: ✭ 2,091 (+1950%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-ctx
Simple kubectl plugin to display/switch contexts
Stars: ✭ 36 (-64.71%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-skew
a simple kubectl plugin to make the "skew" visible
Stars: ✭ 18 (-82.35%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-tmux-logs
A kubectl plugin to display container logs within separate tmux panes
Stars: ✭ 19 (-81.37%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-evict-pod
This plugin evicts the given pod and is useful for testing pod disruption budget rules
Stars: ✭ 51 (-50%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-whoami
This plugin gets the subject name using the effective kubeconfig
Stars: ✭ 74 (-27.45%)
Mutual labels:  kubectl, kubectl-plugins
rbac-tool
Rapid7 | insightCloudSec | Kubernetes RBAC Power Toys - Visualize, Analyze, Generate & Query
Stars: ✭ 546 (+435.29%)
Mutual labels:  kubectl, kubectl-plugin
Kubectx
Faster way to switch between clusters and namespaces in kubectl
Stars: ✭ 11,922 (+11588.24%)
Mutual labels:  kubectl, kubectl-plugins
kubectl-blame
Show who edited resource fields.
Stars: ✭ 76 (-25.49%)
Mutual labels:  kubectl, kubectl-plugin
kubectl-ns
Simple kubectl plugin to display/switch namespaces
Stars: ✭ 20 (-80.39%)
Mutual labels:  kubectl, kubectl-plugins

Kubectl Interactive Exec

Summary

Kubectl-iexec is a plugin providing an interactive selector to exec into a running pod. For a search filter, the plugin will return a list of pods and containers that match, then perform a kubectl exec to the selection.

Notes:

Kubectl >= v1.12.0 is required for plugins to work

For more information on kuberctl plugins see documentation

Usage:

$ kubectl iexec --help

Kubectl-iexec is an interactive pod and container selector for `kubectl exec`

Arg[1] will act as a filter, any pods that match will be returned in a list
that the user can select from. Subsequent args make up the array of commands that
should be executed on the pod.

example:
kubectl iexec busybox /bin/sh

example:
kubectl iexec busybox cat /etc/hosts

Usage:
  iexec [pod filter] [remote command(s)] [flags]

Flags:
  -c, --container string   Container to search
  -h, --help               help for iexec
  -l, --log-level string   log level (trace|debug|info|warn|error|fatal|panic)
  -x, --naked              Decolorize output
  -n, --namespace string   Namespace to search
  -v, --vim-mode            Vim Mode enabled

asciicast

Install:

To install the plugin, the binary simply needs to be somewhere on your path in the format kubectl-[plugin_name]. the simplest way to do this is to go get the package:

go get -u github.com/gabeduke/kubectl-iexec

Alternatively you may pull the binary from the releases page on Github:

Select OS

# Linux
OS=LINUX

# Mac
OS=DARWIN

Run:

# Get latest release
TAG=$(curl -s https://api.github.com/repos/gabeduke/kubectl-iexec/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')

# Donwload and extract binary to /usr/local/bin
curl -LO https://github.com/gabeduke/kubectl-iexec/releases/download/${TAG}/kubectl-iexec_${TAG}_${OS:-Linux}_x86_64.tar.gz

mkdir -p /tmp/kubectl-iexec
tar -xzvf kubectl-iexec_${TAG}_${OS}_x86_64.tar.gz -C /tmp/kubectl-iexec
chmod +x /tmp/kubectl-iexec/kubectl-iexec

sudo mv /tmp/kubectl-iexec/kubectl-iexec /usr/local/bin
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].