Difference between revisions of "Kubectl logs"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 36: | Line 36: | ||
* {{kubectl logs}} | * {{kubectl logs}} | ||
* {{kubectl}} | * {{kubectl}} | ||
− | * {{K8s}} | + | * {{K8s info}} |
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Revision as of 13:42, 4 July 2022
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs
kubectl logs --help
kubectl logs my-pod
kubectl logs my-pod -f
orkubectl logs my-pod --follow
kubectl logs my-pod --tail=25
kubectl logs my-pod -p
orkubectl logs --previous
kubectl logs -l app=elasticsearch
kubectl logs your_container -c count
kubectl logs error: expected 'logs [-f] [-p] (POD | TYPE/NAME) [-c CONTAINER]'. POD or TYPE/NAME is a required argument for the logs command See 'kubectl logs -h' for help and examples
Related
kubectl exec
- CKA v1.23: Evaluate cluster and node logging
- CKA v1.18: Display scheduler events
- CKA v1.18: Manage cluster component logs
- CKA v1.18: Manage application logs
- CKA v1.15, CKA v1.21: Understand container logging
stern -A .
ktail
kubectl top
kubectl get events
See also
kubectl logs, ktail, stern, --previous, -c
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io- Kubernetes info:
kubectl config view, kubectl cluster-info dump
Advertising: