From fc6e0fa71da27254f76e672b76756779539a94fb Mon Sep 17 00:00:00 2001 From: Arthur Lutz Date: Wed, 12 Jun 2024 16:08:44 +0200 Subject: [PATCH] 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 --- pages/common/kubectl-logs.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/kubectl-logs.md b/pages/common/kubectl-logs.md index 035b629f5d..25e3b64586 100644 --- a/pages/common/kubectl-logs.md +++ b/pages/common/kubectl-logs.md @@ -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}}`