Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 851 Bytes

File metadata and controls

46 lines (33 loc) · 851 Bytes

Interactive Pod exec

← Back to README

Select a Pod interactively and open a shell inside one of its containers:

kubectl peek exec

kubectl-peek exec

The selector displays the Pod name, readiness, container count and phase. Completed and failed Pods are excluded.

Select Pod
    ↓
Select container when more than one exists
    ↓
Open /bin/bash or fall back to /bin/sh

Common commands

kubectl peek exec api
kubectl peek exec -n staging
kubectl peek exec api \
  --namespace staging \
  --container application \
  --shell /bin/sh

Overrides are available for namespace, context, kubeconfig, container and shell.

Alias:

kubectl peek x

Exit the container shell with:

exit