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:
Arthur Lutz
2024-06-12 16:08:44 +02:00
committed by GitHub
parent f94e54accf
commit fc6e0fa71d

View File

@@ -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}}`