Difference between revisions of "Kubectl logs"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
  [[kubectl logs --help]]
 
  [[kubectl logs --help]]
 
* https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs
 
* https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs
 
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>
Line 17: Line 12:
 
* <code>[[kubectl]] logs your_container -c count</code>
 
* <code>[[kubectl]] logs your_container -c count</code>
  
 +
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 ==
 
== Related ==

Revision as of 17:37, 25 May 2022

kubectl logs --help


Labels:

  • 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

See also

Advertising: