Editing Kubectl logs
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[kubectl logs --help]] | |
− | |||
− | + | 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 | ||
− | + | * <code>[[kubectl]] logs my-pod</code> | |
− | + | * <code>kubectl logs my-pod -p</code> | |
− | |||
− | |||
− | |||
− | |||
+ | [[Labels]]: | ||
− | + | <code>kubectl logs -l app=elasticsearch</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == Related == | + | == Related terms == |
* <code>[[kubectl exec]]</code> | * <code>[[kubectl exec]]</code> | ||
− | + | * [[CKA v1.18]]: Display [[scheduler]] events | |
− | * [[CKA v1.18]]: Display [[ | ||
* [[CKA v1.18]]: [[Manage cluster component logs]] | * [[CKA v1.18]]: [[Manage cluster component logs]] | ||
* [[CKA v1.18]]: [[Manage application logs]] | * [[CKA v1.18]]: [[Manage application logs]] | ||
* [[CKA v1.15]], [[CKA v1.21]]: [[Understand container logging]] | * [[CKA v1.15]], [[CKA v1.21]]: [[Understand container logging]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
* [[Kubernetes logging]] | * [[Kubernetes logging]] | ||
− | * [[ | + | * <code>[[stern -A .]]</code> |
− | |||
− | |||
== See also == | == See also == | ||
− | * {{kubectl | + | * {{kubectl}} |
− | + | * {{K8s}} | |
− | * {{K8s | ||
− | |||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Advertising: