Difference between revisions of "Kubectl logs"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
  [[kubectl logs --help]]
 
  [[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</code>

Revision as of 20:34, 22 February 2022

This article is a Draft. Help us to complete it.

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: