Difference between revisions of "Kubectl logs"

From wikieduonline
Jump to navigation Jump to search
Line 23: Line 23:
 
* [[CKA v1.15]], [[CKA v1.21]]: [[Understand container logging]]
 
* [[CKA v1.15]], [[CKA v1.21]]: [[Understand container logging]]
 
* [[Kubernetes logging]]
 
* [[Kubernetes logging]]
* <code>[[stern]]</code>
+
* <code>[[stern -A .]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 20:42, 22 February 2022

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
  • kubectl logs my-pod
  • kubectl logs my-pod -p

Labels:

kubectl logs -l app=elasticsearch


Related terms

See also

Advertising: