<p>I have deployed my application via docker on Google Kubernetes cluster. I am facing an application error due to which I want to enter inside the container and check a few things. At local, all I had to do was run <code>sudo docker ps</code> and then exec -it into the container.</p>

<p>How can I do that when containers are deployed on a Kubernetes cluster?</p>

aviral sanjay
<p>You need to use kubectl</p>

<pre><code>kubectl get pods
kubectl exec -it pod-container-name -- /bin/bash
</code></pre>
