Prompt

My Kubernetes pods keep restarting how do I troubleshoot this

Technology / Observability1 observationLast seen Oct 19, 2026

Latest observation

Oct 19, 2026OpenAI APIWeb search: off

Here’s a practical way to troubleshoot Kubernetes pod restarts.

1) Check what is restarting and how often

kubectl get pods -A
kubectl get pods -n <namespace> -o wide
kubectl get pod <pod-name> -n <namespace>

Look at:

  • RESTARTS count
  • STATUS: CrashLoopBackOff, Error, OOMKilled, Completed, etc.
  • AGE

2) Describe the pod

This is usually the fastest way to see why it’s restarting:

kubectl describe pod <pod-name> -n <namespace>

Pay attention to:

  • Events at the bottom
  • Last State
  • Reason fields like:
    • OOMKilled
    • Error
    • ContainerCannotRun
    • CrashLoopBackOff
    • Liveness probe failed
    • Readiness probe failed

3) Check the logs

If the container crashes, inspect current and previous logs:

kubectl logs <pod-name> -n <namespace>
kubectl logs <pod-name> -n <namespace> --previous

If there are multiple containers:

kubectl logs <pod-name> -n <namespace> -c <container-name>
kubectl logs <pod-name> -n <namespace> -c <container-name> --previous

Common log clues:

  • app startup failure
  • missing config/env vars
  • connection failures to DB/API
  • syntax/runtime exceptions
  • permission errors

4) Check if it’s OOMKilled

If the pod is being killed for memory:

kubectl describe pod <pod-name> -n <namespace>

Look for:

  • Reason: OOMKilled
  • exit code 137

Then inspect resources:

kubectl get pod <pod-name> -n <namespace> -o yaml

Check:

  • memory requests/limits
  • whether the app needs more memory
  • node memory pressure

You may need to raise memory limits or fix a memory leak.

5) Check probes

Bad liveness/startup probes can cause restart loops.

Inspect:

kubectl get pod <pod-name> -n <namespace> -o yaml

Look for:

  • livenessProbe
  • readinessProbe
  • startupProbe

Common issues:

  • probe path/port wrong
  • app starts too slowly
  • timeout too short
  • probe depends on external service

If the app needs more startup time, add a startupProbe or relax the liveness probe.

6) Check deployment/config changes

If restarts started after a deploy or config change, compare:

kubectl rollout history deployment/<deployment-name> -n <namespace>
kubectl describe deployment <deployment-name> -n <namespace>

Also check:

  • ConfigMaps
  • Secrets
  • image tag changes
  • env vars
  • mounted volumes

7) Check node health

Sometimes the pod is fine but the node is unhealthy.

kubectl get nodes
kubectl describe node <node-name>

Look for:

  • memory/disk pressure
  • node reboots
  • network issues
  • kubelet problems

8) Check if the pod is being evicted or terminated externally

Look for:

  • Evicted
  • NodeNotReady
  • Preempted
  • Terminated
  • Killed

You can also check events:

kubectl get events -A --sort-by=.lastTimestamp

9) If it’s a Job or Completed pod

If the pod is from a Job, it may exit successfully and restart depending on controller settings.

Check:

kubectl describe pod <pod-name> -n <namespace>
kubectl describe job <job-name> -n <namespace>

10) Quick common causes

Most restart loops come from:

  • app crashes on startup
  • bad env vars or missing secrets
  • failing liveness probe
  • OOMKilled due to memory limits
  • dependency unavailable (DB, Redis, API)
  • bad image / entrypoint / command
  • permission or volume mount issues

Fastest triage command sequence

Run these in order:

kubectl get pods -n <namespace>
kubectl describe pod <pod-name> -n <namespace>
kubectl logs <pod-name> -n <namespace> --previous
kubectl get events -n <namespace> --sort-by=.lastTimestamp

If you want, paste the output of:

kubectl describe pod <pod-name> -n <namespace>
kubectl logs <pod-name> -n <namespace> --previous

and I can help you interpret it.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.