Update cheatsheets

This commit is contained in:
ivuorinen
2024-06-13 00:14:42 +00:00
parent 5cc33140be
commit 038e245f61
12 changed files with 42 additions and 34 deletions

View File

@@ -24,10 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
`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}}`
@@ -35,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- 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}}`