Introduction
Sometimes you need to look inside a running container to check logs, fix issues, or run quick commands. Kubernetes lets you run commands directly inside your Pods without stopping them.
When you want to check the contents of a file inside a running container.
When you need to debug an application by running shell commands inside the Pod.
When you want to check environment variables or configuration inside the container.
When you want to run a quick database query inside a Pod running a database.
When you want to test connectivity or network tools inside the Pod.