# Kubernetes — what to reach for first Order matters. Widen first, then narrow. ## 무엇이 있나 ```bash kubectl get pods # 이름 · 상태 · 재시작 횟수 kubectl get pods -o wide # + 노드 · 파드 IP kubectl get all # 워크로드 계열만. Secret·PVC·Ingress 는 안 나온다 kubectl get secret,configmap,pvc,ingress ``` ## 왜 이 파드가 이런가 ```bash kubectl describe pod # 이벤트가 여기 붙는다 — 로그보다 먼저 본다 kubectl logs kubectl logs --previous # CrashLoop 이면 죽은 이유는 여기 있다 kubectl logs -c # 컨테이너가 여럿일 때 kubectl events --for pod/ kubectl get events --sort-by=.lastTimestamp | tail -20 ``` ## 사슬을 따라간다 ```bash kubectl get deploy,rs,pod -l app=