<p>How could I debug a pod stuck in pending state? I am using <code>k8ssandra</code> <a href="https://k8ssandra.io/docs/" rel="nofollow noreferrer">https://k8ssandra.io/docs/</a> to create a <code>Cassandra</code> cluster. It uses <code>helm</code> files. I created a 3 nodes cluster and changed <code>size</code> value to 3 in local <code>values.yaml</code> file to create a 3 node cluster - <a href="https://github.com/k8ssandra/k8ssandra/blob/main/charts/k8ssandra-cluster/values.yaml" rel="nofollow noreferrer">https://github.com/k8ssandra/k8ssandra/blob/main/charts/k8ssandra-cluster/values.yaml</a></p>
<pre><code>no_reply@cloudshell:~ (k8ssandra-299315)$ kubectl get pods
NAME                                                              READY   STATUS      RESTARTS   AGE
cass-operator-86d4dc45cd-588c8                                    1/1     Running     0          29h
grafana-deployment-66557855cc-j7476                               1/1     Running     0          29h
k8ssandra-cluster-a-grafana-operator-k8ssandra-5b89b64f4f-8pbxk   1/1     Running     0          29h
k8ssandra-cluster-a-reaper-k8ssandra-847c99ccd8-dsnj4             1/1     Running     0          28h
k8ssandra-cluster-a-reaper-k8ssandra-schema-5fzpn                 0/1     Completed   0          28h
k8ssandra-cluster-a-reaper-operator-k8ssandra-87d56d56f-wn8hw     1/1     Running     0          29h
k8ssandra-dc1-default-sts-0                                       2/2     Running     0          29h
**k8ssandra-dc1-default-sts-1                                       0/2     Pending     0          14m**
k8ssandra-dc1-default-sts-2                                       2/2     Running     0          14m
k8ssandra-tools-kube-prome-operator-6bcdf668d4-ndhw9              1/1     Running     0          29h
prometheus-k8ssandra-cluster-a-prometheus-k8ssandra-0             2/2     Running     1          29h
</code></pre>

Manu Chadha
<p>The best way as described by Arghya is checking the events of the pod.</p>
<pre><code>kubectl describe pod k8ssandra-dc1-default-sts-1  
</code></pre>
<p>You could also check for the logs of the pod:</p>
<pre><code>kubectl logs k8ssandra-dc1-default-sts-1  
</code></pre>
