Skip to content

Connect to container that has sidecars

admin exec -it -n <namespace>  <pod name> -c <sidecar name> /bin/sh
This makes some assumptions:

  1. You will need to know the namespace of the container first, use kubectl get namespaces and then kubectl get pods -n <namespace)
  2. This assumes there is /bin/sh installed. Some containers do not have a shell.

Want to make this site better? Open a PR or help fund hosting costs