kubectl-logs

logs Show logs for containers in a pod. More information:…

kubectl logs

Show logs for containers in a pod. More information: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs.

kubectl logs {{pod_name}}

kubectl logs --container {{container_name}} {{pod_name}}

kubectl logs --all-containers={{true}} {{pod_name}}

kubectl logs --follow {{pod_name}}

kubectl logs --follow --container {{container_name}} {{pod_name}}

kubectl logs --since={{relative_time}} {{pod_name}}

kubectl logs --tail={{10}} {{pod_name}}

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← kubectl-get kubectl-rollout →