Difference between revisions of "Kubectl logs --previous"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
kubectl logs --previous [[--tail]] 10 [[your-pod]] | 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]] | 2022/07/18 16:57:36 Failed to connect to [[RabbitMQ]] dial tcp 10.100.105.23:[[5672]]: connect: [[connection refused]] | ||
+ | |||
+ | == Related == | ||
+ | * [[CKA: Evaluate cluster and node logging]] | ||
== See also == | == See also == |
Revision as of 19:40, 23 August 2022
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
Related
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: