_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Kubernetes troubleshooting: kompletní flowchart

26. 05. 2024 1 min read intermediate

Pod nefunguje? Tady je systematický troubleshooting flowchart.

Pod Not Starting

kubectl describe pod
kubectl get events –sort-by=.lastTimestamp

Podívejte se na Events sekci. Nejčastější příčiny:

  • ImagePullBackOff — špatný image name nebo registry credentials
  • Pending — nedostatek resources, node selector/affinity
  • Init:Error — init container selhal

CrashLoopBackOff

kubectl logs –previous
kubectl describe pod

  • Chyba v aplikaci (podívejte se do logů)
  • Chybějící config/secret
  • Health check selhává příliš rychle

Networking

kubectl run debug –rm -it –image=nicolaka/netshoot – /bin/bash

Uvnitř: curl, nslookup, traceroute, tcpdump

  • Service nemá endpoints? → Zkontrolujte label selector
  • DNS nefunguje? → nslookup svc.namespace.svc.cluster.local
  • NetworkPolicy blokuje traffic?

Storage

kubectl get pv,pvc

  • PVC Pending → StorageClass neexistuje nebo nemá provisioner
  • Volume mount error → Zkontrolujte permissions

Autoscaling

kubectl get hpa
kubectl describe hpa

Postup

describe pod → events → logs → exec do podu → network debug kontejner.

kubernetestroubleshootingdevops
Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.