mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-25 23:15:26 +02:00
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>
This commit is contained in:
parent
f94e54accf
commit
fc6e0fa71d
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue