# Executing in Pod

> How do you get a shell inside a running Pod, and what do you do when the container image has no shell?

Canonical: https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-exec-shell
Last updated: 2026-11-28

Difficulty: Beginner

## Question

How do you get a shell inside a running Pod, and what do you do when the container image has no shell?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

kubectl exec, Interactive Shell, kubectl debug, Ephemeral Containers, Distroless Images

Previous: [Viewing Logs](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-logs-tailing) · Next: [Node Maintenance](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-drain-node) · [All of Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)

## More Kubernetes & Orchestration questions

- [Static Pods](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-static-pods)
- [Service Discovery](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-service-discovery)
- [Init Containers](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-init-containers)
- [Soft vs. Hard Affinity](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-affinity-soft-hard)
- [Metrics Server](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-metric-server-role)
- [Checking Resource Usage](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-kubectl-top)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)
