diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py
index <HASH>..<HASH> 100644
--- a/kubespawner/spawner.py
+++ b/kubespawner/spawner.py
@@ -1596,7 +1596,7 @@ class KubeSpawner(Spawner):
         if data is not None:
             if data["status"]["phase"] == 'Pending':
                 return None
-            ctr_stat = data["status"]["containerStatuses"]
+            ctr_stat = data["status"].get("containerStatuses")
             if ctr_stat is None:  # No status, no container (we hope)
                 # This seems to happen when a pod is idle-culled.
                 return 1
Access containerStatuses key with get()

There are some scenarios in which a pod will have a status
value but not a containerStatuses value. This change prevents
a KeyError in that case.

Closes: #<I>