<p>I have one pod running with name 'jenkins-app-2843651954-4zqdp'. I want to install few softwares temporarily on this pod. How can I do this?</p>

<p>I am trying this- <code>kubectl exec -it  jenkins-app-2843651954-4zqdp  -- /bin/bash</code>
and then running apt-get install commands but since the user I am accessing with doesn't have sudo access I am not able to run commands</p>

<ul>
<li>Use <code>kubectl describe pod ...</code> to find the node running your Pod and the container ID (<code>docker://...</code>)</li>
<li>SSH into the node</li>
<li>Run <code>docker exec -it -u root CONTAINER_ID /bin/bash</code></li>
</ul>
