Difference between revisions of "Kubectl logs"

From wikieduonline
Jump to navigation Jump to search
Line 39: Line 39:
 
== See also ==
 
== See also ==
 
* {{kubectl logs}}
 
* {{kubectl logs}}
 +
* {{kubectl get}}
 
* {{K8s troubleshooting}}
 
* {{K8s troubleshooting}}
 
* {{Kubernetes info}}
 
* {{Kubernetes info}}
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Revision as of 07:46, 25 July 2022

https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs

kubectl logs ${POD_NAME} ${CONTAINER_NAME}


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: