我想对500多个kubernetes pod运行tcpdump,抽样30-120秒。针对单个广告连播的kubectl
效果很好:
$ kubectl exec -ti [POD NAME] timeout [SAMPLE TIME] tcpdump
...
real tcpdump output in stdout!
我想使用parallel
,它提供了一种简单的方法来转储此命令的结果。在parallel
之前添加上述命令不起作用:
$ parallel kubectl exec -ti [POD NAME] timeout [SAMPLE TIME] tcpdump
Academic tradition requires you to cite works you base your article on.
When using programs that use GNU Parallel to process data for publication
please cite:
O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
;login: The USENIX Magazine, February 2011:42-47.
This helps funding further development; and it won't cost you a cent.
If you pay 10000 EUR you should feel free to use GNU Parallel without citing.
To silence the citation notice: run 'parallel --bibtex'.
parallel: Warning: Input is read from the terminal.
parallel: Warning: Only experts do this on purpose. Press CTRL-D to exit.
正确的方法是什么?