1

我想对 500 多个 kubernetes pod 运行 tcpdump,采样 30-120 秒。kubectl针对单个 pod 效果很好:

 $ 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.

这样做的正确方法是什么?

4

0 回答 0