<p>I have a pod <code>test-1495806908-xn5jn</code> with 2 containers. I'd like to restart one of them called <code>container-test</code>. Is it possible to restart a single container within a pod and how? If not, how do I restart the pod?</p>

<p>The pod was created using a <code>deployment.yaml</code> with:</p>

<pre><code>kubectl create -f deployment.yaml
</code></pre>

<blockquote>
  <p>Is it possible to restart a single container</p>
</blockquote>

<p>Not through <code>kubectl</code>, although depending on the setup of your cluster you can "cheat" and <code>docker kill the-sha-goes-here</code>, which will cause kubelet to restart the "failed" container (assuming, of course, the restart policy for the Pod says that is what it should do)</p>

<blockquote>
  <p>how do I restart the pod</p>
</blockquote>

<p>That depends on how the Pod was created, but based on the Pod name you provided, it appears to be under the oversight of a ReplicaSet, so you can just <code>kubectl delete pod test-1495806908-xn5jn</code> and kubernetes will create a new one in its place (the new Pod will have a different name, so do not expect <code>kubectl get pods</code> to return <code>test-1495806908-xn5jn</code> ever again)</p>
