mirror of https://github.com/CrimsonTome/tldr.git
kubectl-logs: add logs for deployment (#12947)
* kubectl-logs: add logs for deployment remove stream + container name which is a combination of two commands to keep list at recommended size * kubectl-logs: syntax fix --------- Co-authored-by: spageektti <git@spageektti.cc>pull/28/head
parent
f94e54accf
commit
fc6e0fa71d
|
@ -19,10 +19,6 @@
|
|||
|
||||
`kubectl logs --follow {{pod_name}}`
|
||||
|
||||
- Stream logs for a specified container in a pod:
|
||||
|
||||
`kubectl logs --follow --container {{container_name}} {{pod_name}}`
|
||||
|
||||
- Show pod logs newer than a relative time like `10s`, `5m`, or `1h`:
|
||||
|
||||
`kubectl logs --since={{relative_time}} {{pod_name}}`
|
||||
|
@ -30,3 +26,7 @@
|
|||
- Show the 10 most recent logs in a pod:
|
||||
|
||||
`kubectl logs --tail={{10}} {{pod_name}}`
|
||||
|
||||
- Show all pod logs for a given deployment:
|
||||
|
||||
`kubectl logs deployment/{{deployment_name}}`
|
||||
|
|
Loading…
Reference in New Issue