kubectl logs --previous
Jump to navigation
Jump to search
kubectl logs --previous
kubectl logs --previous --tail
kubectl logs --previous --tail 10 your-pod 2022/07/18 16:57:36 Failed to connect to RabbitMQ dial tcp 10.100.105.23:5672: connect: connection refused
See also
kubectl logs, ktail, stern, --previous, -c
- K8s troubleshooting:
kubectl logs, kubectl top, kubectl get events -A, kubectl describe pod
, Liveness, Readiness,Kubernetes events
, Pulling image, OOMKilled, ProbeWarning, Reason,FailedScheduling
,errImagePull, ImagePullBackOff
, Kubelet conditions:MemoryPressure, DiskPressure, KubeletHasSufficientPID, KubeletReady, kubectl [ debug | attach | exec ] kubectl cluster-info dump, SimKube, KWOK
- Kubectl information commands:
cluster-info
|view
|pods
|nodes
|services
|version
|describe | logs
Advertising: