$ kubectl logs -l 'role=nodejs' --tail=2 -f error: only one of follow (-f) or selector (-l) is allowed See 'kubectl logs -h' for help and examples.However there are alternatives. Here is a how to tail logs from all Kubernetes pods at once using just one Plain Old Bash (POB) script.
Sunday, October 15, 2017
Tail logs from all Kubernetes pods at once with podlogs.sh
Unfortunately you cannot tail and at the same time use selectors:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment