<p>I have a deployment file and when I do <code>kubectl apply -f</code> my pods don't get deployed after a few restart and crashes. Hence my questions:</p>

<p>1- If I set the replicas to 1, is there a way to have an "interactive" mode where I can see in my terminal what's going on?</p>

<p>2- Is there a way to limit - in the deployment file - the number of restart? This can be specified for pods (restartPolicy...) but not for deployment apparently?</p>

<p>3- Any troubleshooting guidelines? For example, how to check that the values in the config maps are properly picked up?
Many thanks - Christian</p>

Christian68
<p>1) You can use </p>

<p><code># kubectl get pods -n &lt;your namespace&gt;</code></p>

<p>command to see your pods. To see them "interactive", you can use <code>watch</code> command with <code>kubectl</code> like this;</p>

<p><code># watch kubectl get pods -n &lt;your-namespace&gt;</code></p>

<p>2) Currently, there is no way to limit the pod restart counts.</p>

<p>3) You can see what's going on with your deployments and pods while they are created with <code>kubectl describe</code> command. </p>

<p>For getting info about pod status,</p>

<pre><code># kubectl get pods -n &lt;your-namespace&gt; --&gt; here you can get your pod's name.
# kubectl describe po &lt;pod-name&gt; -n &lt;your-namespace&gt;
</code></pre>

<p>For getting info about deployment status,</p>

<pre><code># kubectl get deployments -n &lt;your-namespace&gt; --&gt; here you can get your deployment's name.
# kubectl describe deployment &lt;deployment-name&gt; -n &lt;your-namespace&gt;
</code></pre>

<p>Hope it helps.</p>
