Difference between revisions of "Kubectl logs --previous"
Jump to navigation
Jump to search
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | [[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 == | |
− | + | * [[CKA: Evaluate cluster and node logging]] | |
+ | * kubectl logs YOURPOD -c yourcontainer | ||
== See also == | == See also == |
Latest revision as of 11:16, 7 December 2023
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[edit]
- CKA: Evaluate cluster and node logging
- kubectl logs YOURPOD -c yourcontainer
See also[edit]
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: