Difference between revisions of "Kubectl logs"

From wikieduonline
Jump to navigation Jump to search
Line 9: Line 9:
  
 
* <code>[[kubectl]] logs my-pod</code>
 
* <code>[[kubectl]] logs my-pod</code>
 +
* <code>[[kubectl]] logs my-pod [[--tail]]=25</code>
 
* <code>kubectl logs my-pod -p</code>
 
* <code>kubectl logs my-pod -p</code>
  

Revision as of 20:48, 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

Labels:

kubectl logs -l app=elasticsearch


Related terms

See also

Advertising: