<p>I just ran <code>kubectl apply -f</code> and got a response that <code>pod/mypod</code> got created
with no error messages or anything</p>

<p>Then I did a <code>kubectl get pods --all-namespaces</code> and there is no trace of mypod!</p>

<p>How can I troubleshoot the pod creation? Where would these logs be, if any?</p>

<p>Thanks.</p>

<p>You can try to look at the logs from each of the Kubernetes components. You can start with the <a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/" rel="nofollow noreferrer">kube-apiserver</a> to see what happened after the request was received. Then the <a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kube-scheduler/" rel="nofollow noreferrer">kube-scheduler</a>, and so forth.</p>

<p>This is likely due to Kubernetes not being able to find resources to run your pod. Are your nodes healthy? You can check them:</p>

<pre><code>$ kubectl get nodes
</code></pre>

<p>You can also look at the logs of your <a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/" rel="nofollow noreferrer">kubelet</a> on your nodes.</p>

<p>Notice that when you get the message <code>pod/mypod got created</code> it means that the objects were created in the cluster's state store (<a href="https://github.com/etcd-io/etcd" rel="nofollow noreferrer">etcd</a>)</p>
