Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kubectl logs tail 100

# Display only the most recent 20 lines of output in pod nginx
kubectl logs --tail=20 nginx

# Show all logs from pod nginx written in the last hour
kubectl logs --since=1h nginx
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kubectl #logs #tail
ADD COMMENT
Topic
Name
2+8 =