Production Kubernetes Troubleshooting: A 30-Minute Triage Runbook

Posted by

–

Production Kubernetes troubleshooting 30-minute triage runbook infographic showing an engineer, troubleshooting workflow, common issues, and essential Kubernetes tools.

When a production application stops responding, Kubernetes engineers need to find the failure quickly without making the situation worse.

A failing Kubernetes application can involve several components. The problem may come from a crashed container, an unhealthy node, an unavailable dependency, a failed deployment, or a networking issue.

Running random kubectl commands rarely provides a reliable diagnosis.

A better approach is to follow a defined triage process. Start by confirming the impact, inspect cluster health, narrow the issue to a workload or infrastructure layer, and collect evidence before making changes.

This 30-minute Kubernetes troubleshooting runbook provides a practical way to do that.

It uses a time-boxed investigation process, production-safe commands, common failure patterns, and clear recovery decision points.

The 30-minute target is for initial diagnosis, not a guarantee that every incident can be resolved in 30 minutes. A complex storage failure, control-plane outage, or multi-service dependency problem may require a longer investigation.

What Is Production Kubernetes Troubleshooting?

Production Kubernetes troubleshooting is the process of identifying, investigating, and resolving problems affecting applications or infrastructure running in a live Kubernetes cluster.

It involves several operational layers:

  • Kubernetes control plane and API access.
  • Worker nodes and container runtimes.
  • Deployments, StatefulSets, and DaemonSets.
  • Pods and individual containers.
  • Services and internal networking.
  • Ingress and external traffic routing.
  • Persistent storage.
  • Resource allocation and autoscaling.
  • Application dependencies.
  • Monitoring, logging, and tracing.

A production incident rarely provides a complete explanation.

For example, an application may return HTTP 503 errors. The visible problem is unavailable service traffic. The actual cause might be zero ready replicas, failed readiness probes, an incorrect Service selector, or an unhealthy dependency.

The troubleshooting process must connect the application symptom with the Kubernetes evidence.

The 30-Minute Kubernetes Incident Triage Plan

Use this timeline as the first investigation cycle.

TimeInvestigation stageExpected outcome
00–05 minutesConfirm impact and cluster contextIdentify the affected service and blast radius
05–10 minutesCheck API and node healthIdentify cluster-wide or infrastructure problems
10–15 minutesInspect workloads and PodsLocate the failing workload or container
15–20 minutesCheck Services and networkingIdentify routing, endpoint, or DNS problems
20–25 minutesInspect resources and storageIdentify capacity, autoscaling, or persistence issues
25–30 minutesSelect a safe next actionProduce an evidence-backed mitigation or escalation plan

This sequence is flexible.

When a clear failure is found early, investigate that failure instead of mechanically completing every stage.

Before Starting: Production Safety Rules

Production troubleshooting requires controlled access.

A command that looks simple can still affect a live application. For example, restarting a Pod may interrupt active requests or cause a workload to fail again before its underlying problem is understood.

Follow these rules before beginning.

  1. Confirm the correct Kubernetes cluster and context.
  2. Identify the affected namespace and workload.
  3. Use an account with the minimum permissions necessary.
  4. Start with read-only investigation.
  5. Record important findings and timestamps.
  6. Avoid deleting or restarting resources during initial diagnosis.
  7. Never expose Kubernetes Secrets, access tokens, or customer information.
  8. Follow your incident-management and change-approval procedures.

Important: The investigation commands in this guide are read-only unless explicitly identified otherwise. Commands using exec or debug require additional care because they interact with live workloads or create debugging resources.

Prepare your investigation variables

The examples use Bash-compatible shell syntax.

Replace these example values with the actual production environment.

export NS="production"
export DEPLOY="checkout-api"
export SVC="checkout-api"Code language: JavaScript (javascript)

Do not copy these example names blindly.

Confirm that the application, namespace, and service exist before using the commands.

Stage 1: Confirm the Incident and Cluster Context (00–05 Minutes)

The first task is to understand exactly what is failing.

Do not begin by restarting Pods.

Find out whether the incident affects:

  • One application endpoint.
  • One workload.
  • Multiple applications in one namespace.
  • Several namespaces.
  • A complete cluster.
  • One region or availability zone.
  • A particular customer group.

Record the incident start time, the first failing alert, the affected endpoint, and the latest known healthy state.

Step 1. Verify the Kubernetes context

Run:

kubectl config current-context

This displays the currently selected Kubernetes context.

Next:

kubectl cluster-info

This helps confirm which cluster your kubectl client is communicating with.

Never assume that a context name alone proves the target cluster is correct.

Step 2. Verify basic cluster access

kubectl version

Check whether the client and server can exchange version information.

Then inspect your permissions:

kubectl auth can-i get nodes
kubectl auth can-i list pods -n "$NS"
kubectl auth can-i list events -n "$NS"Code language: PHP (php)

This helps separate access problems from actual application problems.

An authorization error is not the same as an application outage.

Step 3. Check Kubernetes API health

kubectl get --raw='/readyz?verbose'Code language: JavaScript (javascript)

The API server’s /readyz endpoint reports whether it is ready to accept requests.

A failing readiness check may indicate an API server initialization or dependency issue, including problems involving etcd or watch-cache synchronization.

Access to this endpoint can depend on cluster configuration and RBAC permissions.

Reference: Kubernetes API health endpoints:
https://kubernetes.io/docs/reference/using-api/health-checks/

Step 4. Review recent events

kubectl get events -n "$NS" \
  --sort-by='.metadata.creationTimestamp' | tail -n 40Code language: PHP (php)

Look for:

  • FailedScheduling.
  • FailedMount.
  • FailedAttachVolume.
  • Unhealthy.
  • BackOff.
  • Failed.
  • Evicted.
  • Successful or unsuccessful scaling events.

Events help identify what Kubernetes observed around the time of the incident.

Do not treat an old event as proof of the current root cause. Correlate its timestamp with the incident.

Expected outcome: You should know the affected namespace, application, cluster context, incident timeframe, and whether the API is reachable.

Stage 2: Check Kubernetes Nodes and Cluster Health (05–10 Minutes)

If a workload is failing, inspect its node before assuming the application itself is responsible.

A node problem can affect several unrelated workloads at once.

Step 5. Check node status

kubectl get nodes -o wideCode language: JavaScript (javascript)

Review the STATUS column.

A healthy node generally shows:

NAME           STATUS   ROLES    AGE   VERSION
worker-node1   Ready    worker   ...   ...
worker-node2   Ready    worker   ...   ...
worker-node3   Ready    worker   ...   ...

Investigate nodes showing:

  • NotReady.
  • Unknown.
  • Scheduling restrictions.
  • Unexpected changes in Kubernetes version.
  • Unusual node placement patterns.

Step 6. Inspect node conditions

For an affected node:

kubectl describe node NODE_NAME

Replace NODE_NAME with the actual node name.

Review the Conditions section.

Important conditions include:

ConditionWhat it may indicate
Ready=FalseNode is reporting an unhealthy state
Ready=UnknownNode status cannot currently be confirmed
MemoryPressure=TrueAvailable memory has reached a pressure condition
DiskPressure=TrueDisk or filesystem resources are under pressure
PIDPressure=TrueAvailable process identifiers are under pressure
NetworkUnavailable=TrueNode network configuration is unavailable

Also review taints, allocated resources, and recent node events.

Do not remove node taints or change scheduling restrictions without understanding why they exist.

Step 7. Check resource usage

kubectl top nodes

This displays recent CPU and memory consumption.

For example:

NAME           CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
worker-node1   1250m        62%    4200Mi          68%
worker-node2   900m         45%    3100Mi          51%
worker-node3   1800m        90%    7200Mi          92%

These values are illustrative.

The command requires the Kubernetes Metrics API, usually provided by Metrics Server or another compatible implementation.

A missing Metrics API does not automatically mean the node is unhealthy.

Also, kubectl top is a recent usage snapshot. It does not replace historical monitoring or detailed operating-system metrics.

Reference:
https://kubernetes.io/docs/reference/kubectl/generated/kubectl_top/

What to do when a node is unhealthy

Check whether multiple affected workloads share the same node.

Compare node events, workload placement, and available capacity.

If the issue involves the worker node, collect evidence from the cluster monitoring system and the cloud provider or infrastructure platform.

Do not immediately restart the node or drain it.

A drain can disrupt workloads, encounter PodDisruptionBudget restrictions, and affect services with limited replicas.

Expected outcome: Identify whether the incident is isolated to one workload or connected to node health and cluster capacity.

Stage 3: Investigate Deployments and Pods (10–15 Minutes)

This is where many application-level incidents become easier to isolate.

A Deployment can exist and still have zero available replicas.

A Pod can be Running and still fail to serve requests.

Inspect the workload before deciding what to change.

Step 8. Check workload status

kubectl get deploy,sts,ds -n "$NS"Code language: JavaScript (javascript)

These commands list:

  • Deployments.
  • StatefulSets.
  • DaemonSets.

For a simple Deployment, healthy replicas should generally match the desired replica count, and the workload should report available replicas.

Now inspect Pods:

kubectl get pods -n "$NS" -o wideCode language: JavaScript (javascript)

Pay attention to:

  • STATUS.
  • READY.
  • RESTARTS.
  • NODE.
  • AGE.

Step 9. Describe the affected Pod

kubectl describe pod POD_NAME -n "$NS"Code language: JavaScript (javascript)

Replace POD_NAME with the affected Pod.

The output contains information about:

  • Container states.
  • Restart history.
  • Readiness.
  • Liveness.
  • Resource requests and limits.
  • Volume mounts.
  • Scheduling.
  • Pod events.

This is often one of the most useful troubleshooting commands during an incident.

Step 10. Inspect application logs

For a running or recently restarted container:

kubectl logs POD_NAME \
  -n "$NS" \
  -c CONTAINER_NAME \
  --since=15m \
  --timestamps=trueCode language: JavaScript (javascript)

If the container restarted, inspect its previous instance:

kubectl logs POD_NAME \
  -n "$NS" \
  -c CONTAINER_NAME \
  --previous \
  --timestamps=trueCode language: JavaScript (javascript)

The --previous option is particularly useful when the current container is running again, but the original failure has disappeared.

If the Pod contains only one container, the container name can generally be omitted.

Review errors such as:

  • Failed database connections.
  • Invalid configuration.
  • Missing environment configuration.
  • Permission errors.
  • Failed dependency connections.
  • Application exceptions.
  • Failed startup or health checks.

Do not share unredacted production logs. They may contain personal data, tokens, internal hostnames, or sensitive request information.

Kubernetes documentation:
https://kubernetes.io/docs/tasks/debug/debug-application/debug-running-pod/

Step 11. Check recent deployment changes

kubectl describe deployment "$DEPLOY" -n "$NS"Code language: JavaScript (javascript)

Review its conditions and events.

Then inspect rollout history:

kubectl rollout history deployment/"$DEPLOY" \
  -n "$NS"Code language: JavaScript (javascript)

Check the rollout status:

kubectl rollout status deployment/"$DEPLOY" \
  -n "$NS" \
  --timeout=10sCode language: JavaScript (javascript)

Compare the incident time with:

  • Image changes.
  • Configuration updates.
  • Secret rotations.
  • Deployment activity.
  • Scaling changes.
  • Infrastructure changes.
  • GitOps synchronization.

A deployment that began immediately before the failure deserves attention, but timing alone does not prove causation.

Common Kubernetes Pod Errors and Their Causes

Use the following table to move from the observed symptom to the next investigation step.

Pod status or eventPossible causeFirst investigation
PendingInsufficient scheduling capacity or placement restrictionsdescribe pod
ImagePullBackOffIncorrect image or registry access problemPod events and image details
ErrImagePullImage retrieval failedImage name, tag, credentials
CrashLoopBackOffApplication repeatedly exitsPrevious container logs
OOMKilledContainer was terminated because of memory exhaustionTermination reason and memory data
CreateContainerConfigErrorInvalid configuration or missing referencePod description
FailedMountVolume mounting problemPVC and node events
EvictedNode resource pressureNode conditions and events
Running but not ReadyReadiness check or application problemProbe configuration and logs
TerminatingShutdown, storage, finalizer, or node issuePod description and controller status

Understanding Pending Pods

A Pending Pod has not completed scheduling and startup.

Common causes include:

  • Insufficient CPU.
  • Insufficient memory.
  • Node selector mismatch.
  • Node affinity requirements.
  • Untolerated taints.
  • Unavailable storage.
  • ResourceQuota restrictions.

Run:

kubectl describe pod POD_NAME -n "$NS"Code language: JavaScript (javascript)

Find the FailedScheduling event.

The scheduler filters nodes according to resource requests and scheduling constraints. A node with apparently low current CPU usage may still be ineligible because its allocatable capacity is already committed through requests.

Documentation:
https://kubernetes.io/docs/concepts/scheduling-eviction/kube-scheduler/

Understanding CrashLoopBackOff

CrashLoopBackOff means Kubernetes is repeatedly trying to start a container after unsuccessful executions.

It is not the actual root cause.

Check the previous logs:

kubectl logs POD_NAME \
  -n "$NS" \
  -c CONTAINER_NAME \
  --previous \
  --timestamps=trueCode language: JavaScript (javascript)

Then inspect:

  • Exit reason.
  • Exit code.
  • Startup configuration.
  • Application arguments.
  • Readiness and liveness probes.
  • Dependency availability.
  • Resource limits.

A restart can hide the original failure if the relevant previous logs and events are not collected first.

Understanding OOMKilled

OOMKilled indicates that the container was terminated following an out-of-memory condition.

Check the termination reason, restart history, container memory limits, and historical memory metrics.

CPU and memory requests serve different purposes.

CPU limits can throttle a container, while memory limits can lead to termination when memory usage exceeds the applicable limit.

Do not increase every memory limit blindly.

A leak, excessive cache growth, a temporary burst, or an incorrect request-to-limit configuration needs a different solution.

Official reference:
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

Stage 4: Troubleshoot Services, DNS, and Networking (15–20 Minutes)

When Pods appear healthy but requests fail, investigate the network path.

The connection may pass through an external load balancer, Ingress or Gateway, Service, EndpointSlice, and Pod.

A failure at any stage can affect application traffic.

Step 12. Check the Kubernetes Service

kubectl get svc -n "$NS"Code language: JavaScript (javascript)

Inspect the affected Service:

kubectl describe service "$SVC" -n "$NS"Code language: JavaScript (javascript)

Review:

  • Service type.
  • Cluster IP.
  • Port.
  • Target port.
  • Selector.
  • Endpoints.

An incorrect target port can prevent traffic from reaching the application even when Pods are healthy.

Step 13. Inspect EndpointSlices

kubectl get endpointslices \
  -n "$NS" \
  -l "kubernetes.io/service-name=$SVC" \
  -o wideCode language: PHP (php)

EndpointSlices show the endpoints associated with a Service.

If the Service has no usable endpoints, investigate:

  • Service selector.
  • Pod labels.
  • Pod readiness.
  • Endpoint conditions.
  • Target Pod availability.

A readiness probe failure can remove a Pod from the EndpointSlices for matching Services.

That is why checking the Service without inspecting Pod readiness is insufficient.

Official documentation:
https://kubernetes.io/docs/tasks/debug/debug-application/debug-service/

Step 14. Check Kubernetes DNS

When an application cannot resolve an internal Service name, investigate DNS.

Check the DNS Service:

kubectl get svc kube-dns -n kube-systemCode language: JavaScript (javascript)

Check DNS Pods:

kubectl get pods \
  -n kube-system \
  -l k8s-app=kube-dnsCode language: JavaScript (javascript)

Then inspect DNS EndpointSlices:

kubectl get endpointslices \
  -n kube-system \
  -l kubernetes.io/service-name=kube-dnsCode language: JavaScript (javascript)

These examples assume the cluster uses the standard CoreDNS Service arrangement. Managed distributions may use different configurations or labels.

Use an approved, existing diagnostic Pod to test resolution:

kubectl exec -n "$NS" APPROVED_DEBUG_POD -- \
  nslookup "$SVC.$NS.svc.cluster.local"Code language: JavaScript (javascript)

The diagnostic container must have nslookup installed.

Do not create a new debugging Pod in production without approval.

Kubernetes DNS troubleshooting reference:
https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/

Step 15. Check NetworkPolicies

Run:

kubectl get networkpolicy -n "$NS"Code language: JavaScript (javascript)

Check whether any policies restrict communication between the affected workloads.

Review:

  • Ingress rules.
  • Egress rules.
  • Pod selectors.
  • Namespace selectors.
  • Destination ports.
  • DNS access.
  • Network plugin support.

Remember that NetworkPolicy enforcement requires a compatible network plugin. Merely creating a NetworkPolicy resource does not guarantee enforcement.

Documentation:
https://kubernetes.io/docs/concepts/services-networking/network-policies/

Step 16. Check external traffic routing

When internal Service communication works but external access fails, inspect:

  • Ingress configuration.
  • Gateway resources, where used.
  • Ingress controller status.
  • Load balancer health.
  • DNS records.
  • TLS certificates.
  • Firewall rules.
  • Cloud network security rules.

Do not change DNS, routing, or firewall configuration until the failing network layer is identified.

Expected outcome: Determine whether the application problem is inside the Pod, between Pods, at the Service layer, or outside the Kubernetes cluster.

Stage 5: Investigate Resources, Autoscaling, and Storage (20–25 Minutes)

Resource issues can cause several unrelated symptoms.

A workload may become unavailable because the cluster has insufficient capacity, storage has become unavailable, or autoscaling cannot provide the expected replicas.

Step 17. Check Pod resource usage

kubectl top pods -n "$NS"Code language: JavaScript (javascript)

Compare CPU and memory consumption with the configured requests and limits.

Look for:

  • Unexpected memory growth.
  • High CPU utilization.
  • Uneven usage between replicas.
  • Resource contention.
  • Containers approaching their limits.

Remember that a short usage snapshot may miss an earlier spike.

Use historical monitoring data when investigating intermittent incidents.

Step 18. Check Horizontal Pod Autoscaler

kubectl get hpa -n "$NS"Code language: JavaScript (javascript)

Inspect the affected autoscaler:

kubectl describe hpa HPA_NAME -n "$NS"Code language: JavaScript (javascript)

Look for:

  • Current and target metrics.
  • Minimum and maximum replicas.
  • Scaling conditions.
  • Unavailable metrics.
  • Failed scaling events.

If the HPA cannot obtain its required metrics, scaling decisions may not behave as expected.

Also check whether the requested replicas can actually be scheduled.

Increasing the desired replica count does not create additional worker-node capacity.

Step 19. Check resource quotas

kubectl get resourcequota,limitrange -n "$NS"Code language: JavaScript (javascript)

Inspect relevant quotas when Pods fail to be created or admitted.

Namespace quotas may restrict CPU, memory, Pod counts, or other resources.

This can produce scheduling or admission problems even when the wider cluster appears healthy.

Step 20. Check persistent storage

kubectl get pvc -n "$NS"Code language: JavaScript (javascript)

Review the affected claim:

kubectl describe pvc PVC_NAME -n "$NS"Code language: JavaScript (javascript)

Look for:

  • Pending claims.
  • Failed volume provisioning.
  • Failed attachment.
  • Mount failures.
  • Capacity issues.
  • StorageClass problems.
  • CSI driver errors.

For StatefulSets and database workloads, storage failures can create more serious availability and data-integrity risks.

Never delete a production PVC as an improvised troubleshooting step.

Do not delete or recreate a volume merely to clear a mounting error.

Follow the storage provider’s documented recovery process.

Expected outcome: Identify whether capacity, autoscaling, quota, or storage is contributing to the incident.

Stage 6: Decide the Next Safe Action (25–30 Minutes)

By this point, the objective is to have enough evidence to recommend a controlled next step.

Do not make several unrelated changes at once.

Choose one justified mitigation, assign an owner, and define how success will be verified.

Step 21. Identify the most likely failure layer

Use this decision guide.

EvidenceLikely investigation area
API readiness failingKubernetes control plane or API dependencies
Several nodes NotReadyNode infrastructure or cluster networking
Many Pods PendingCapacity or scheduling constraints
CrashLoopBackOff after deploymentApplication, configuration, dependency, or startup failure
OOMKilled containersMemory limit or application memory behaviour
Running Pods but no Service endpointsReadiness or selector problems
Internal Service DNS failuresCoreDNS or cluster DNS configuration
Application works internally but external traffic failsIngress, Gateway, load balancer, DNS or TLS
PVC Pending or FailedMountStorage provisioning or attachment
HPA unable to scaleMetrics, configuration or available capacity

One symptom can have multiple causes.

Use supporting evidence and counter-evidence before assigning a root cause.

Step 22. Check for a recent known-bad deployment

If the incident started immediately after a deployment, inspect:

kubectl rollout history deployment/"$DEPLOY" -n "$NS"Code language: JavaScript (javascript)

Confirm:

  • The affected revision.
  • The last known healthy revision.
  • Image and configuration changes.
  • Whether the database schema changed.
  • Whether external dependencies changed.
  • Whether the application is managed through GitOps.

A rollback may be appropriate when the new revision is clearly responsible, and the previous revision is compatible with current data and dependencies.

For GitOps-managed environments, prefer reverting the relevant change through the approved GitOps workflow. A manual cluster change may be overwritten by reconciliation.

Step 23. Define the recovery action

Before a change, agree on:

  1. The specific problem being addressed.
  2. The resource that will change.
  3. The expected benefit.
  4. The potential service impact.
  5. The rollback procedure.
  6. The responsible engineer.
  7. The person approving the change.
  8. The health signals that will confirm recovery.

For a confirmed bad Deployment revision, an authorized rollback may use:

kubectl rollout undo deployment/"$DEPLOY" \
  -n "$NS" \
  --to-revision=REVISION_NUMBERCode language: JavaScript (javascript)

This command changes the live workload.

It is not part of the read-only triage sequence. Use it only after reviewing the revision and following your production change procedure.

Verify the rollout:

kubectl rollout status deployment/"$DEPLOY" \
  -n "$NS" \
  --timeout=120sCode language: JavaScript (javascript)

Then verify actual application behaviour. A successful Kubernetes rollout does not automatically prove that all external dependencies or customer requests are healthy.

Official reference:
https://kubernetes.io/docs/tasks/run-application/update-deployment-rolling/

Production Kubernetes Troubleshooting: Commands Quick Reference

Keep this command list available during on-call rotations.

PurposeCommand
Current contextkubectl config current-context
Cluster informationkubectl cluster-info
API readinesskubectl get --raw='/readyz?verbose'
List nodeskubectl get nodes -o wide
Describe nodekubectl describe node NODE_NAME
List Podskubectl get pods -n "$NS" -o wide
Describe Podkubectl describe pod POD_NAME -n "$NS"
Application logskubectl logs POD_NAME -n "$NS"
Previous container logskubectl logs POD_NAME -n "$NS" --previous
List workloadskubectl get deploy,sts,ds -n "$NS"
Deployment historykubectl rollout history deployment/"$DEPLOY" -n "$NS"
Check Servicekubectl describe service "$SVC" -n "$NS"
EndpointSliceskubectl get endpointslices -n "$NS"
Node resource usagekubectl top nodes
Pod resource usagekubectl top pods -n "$NS"
HPA informationkubectl get hpa -n "$NS"
PVC informationkubectl get pvc -n "$NS"
Recent eventskubectl get events -n "$NS"

These are diagnostic commands, not guaranteed solutions.

Always select the correct context, namespace, resource, and container before using them.

Common Mistakes During Production Kubernetes Incidents

Restarting Pods before investigating

A restart can remove useful transient evidence and may not address the underlying problem.

Collect events, container states, and previous logs first.

Deleting a Pod to fix every issue

A controller may recreate the Pod, but the replacement can fail for the same reason.

Understand the cause before requesting replacement.

Increasing memory limits without investigating

A higher limit may temporarily hide a memory leak or excessive allocation.

Compare historical memory use with the application’s expected workload.

Draining unhealthy nodes without a capacity plan

Moving workloads can increase pressure on remaining nodes.

Check spare capacity, PodDisruptionBudgets, storage behaviour, and scheduling constraints before any drain.

Changing several resources together

Multiple simultaneous changes make causal diagnosis difficult.

Change one justified variable at a time where operationally safe, and record each change.

Ignoring monitoring history

A current snapshot may look healthy after a short-lived outage.

Correlate metrics, application logs, Kubernetes events, and traces using the same incident time window.

Treating Running as Healthy

A running container may not be ready to receive traffic.

Always review readiness and Service endpoints.

Building a Better Kubernetes Incident Response Process

A good troubleshooting runbook should not end when the application recovers.

Use the incident to improve future response quality.

Build an incident evidence packet

For every serious incident, capture:

FieldInformation to record
Incident IDUnique incident reference
Start timeTimestamp with time zone
ClusterAffected environment
NamespaceAffected namespace
WorkloadDeployment, StatefulSet, or other controller
User impactAffected functionality and requests
Last known healthy stateLast confirmed working condition
Recent changesReleases, configuration, infrastructure
Observed evidenceEvents, logs, metrics, traces
Root cause confidenceConfirmed, probable, or unknown
Recovery actionApproved change and owner
VerificationHealth checks after the change
Follow-upPreventive engineering work

Avoid treating a probable cause as a confirmed root cause.

Improve observability

Production Kubernetes environments need correlated operational signals.

The three major observability signals are:

Metrics: Show resource consumption, error rates, latency, saturation, and capacity.

Logs: Show application and system events.

Traces: Help follow requests across distributed services and identify latency or dependency problems.

A typical monitoring pipeline may include Prometheus, Grafana, a centralized log platform, and distributed tracing through OpenTelemetry.

The right combination depends on infrastructure, workload size, retention needs, and operational budget.

See the official Kubernetes observability documentation:
https://kubernetes.io/docs/concepts/cluster-administration/observability/

Turn recurring incidents into permanent improvements.

After recovery:

  • Identify why the alert did not provide enough information.
  • Review workload resource requests and limits.
  • Correct ineffective probes.
  • Add missing application metrics.
  • Improve deployment validation.
  • Review dependency failure handling.
  • Update the incident runbook.
  • Add tests for the failure scenario.
  • Assign preventive work to an owner.

The objective is not just to resolve today’s incident. It is to reduce the chance that the same failure returns.

When Should You Escalate?

Some production issues should not be handled by ordinary application-level troubleshooting alone.

Escalate to the platform or cloud infrastructure team when:

  • The Kubernetes API is unavailable.
  • Several worker nodes become unreachable.
  • Control-plane health checks continue failing.
  • Container runtimes fail across multiple nodes.
  • Persistent storage may be damaged.
  • Networking problems affect several namespaces.
  • The incident involves suspected credential compromise.
  • Recovery could result in data loss.
  • The team cannot establish a safe rollback.

Do not wait until the 30-minute window expires when the incident already requires specialist intervention.

Frequently Asked Questions

How do you troubleshoot Kubernetes in production?

Start by confirming the affected application and blast radius. Verify cluster context, API health, node conditions, workload status, Pod events, logs, Services, networking, resources, and storage. Collect evidence before changing live resources.

What should I check first when a Kubernetes Pod is failing?

Run kubectl describe pod and inspect its events and container states. Then check the application logs. If the container restarted, retrieve the previous container logs using. kubectl logs --previous.

What causes CrashLoopBackOff in Kubernetes?

Common causes include application startup errors, incorrect configuration, missing dependencies, failed liveness probes, and memory termination. CrashLoopBackOff describes repeated restart behaviour, not a specific root cause.

How can I identify an OOMKilled container?

Inspect the container’s last termination state and reason in Pod details. Compare memory limits with historical resource metrics. Do not assume that every exit code 137 proves an OOM event.

How do I troubleshoot a Kubernetes Service with no endpoints?

Inspect the Service selector, matching Pod labels, Pod readiness, and EndpointSlices. A readiness failure can make a Pod unavailable as a Service endpoint.

Is kubectl top enough for production monitoring?

No. It provides recent CPU and memory usage through the Metrics API when available. Historical analysis, application metrics, logs, and traces are needed for deeper investigation.

Is it safe to restart a production Kubernetes Pod?

Not automatically. Review replication, PodDisruptionBudgets, active traffic, application state, and the underlying failure first. Follow the approved incident and change procedure.

Can a Kubernetes incident always be resolved within 30 minutes?

No. The 30-minute workflow is intended to establish the impact, probable failure layer, evidence, and next action. Complex incidents may need more investigation and specialist support.

Final Thoughts

Production Kubernetes troubleshooting works best when engineers follow evidence instead of guessing.

Start by confirming the incident. Check cluster and node health. Inspect workload states, container logs, network paths, resources, and storage. Then choose one controlled recovery action.

A 30-minute triage process gives on-call engineers a consistent starting point. It also creates better incident records and makes escalation easier.

Keep the runbook updated as your architecture and Kubernetes environment change.

The most important production rule is simple: understand the failure before changing the cluster.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x