LoginSignup
11
2

More than 5 years have passed since last update.

Kubernetesで複数のPodのログを同時にtailする

Last updated at Posted at 2018-04-18

kubetailを使うと簡単にログを確認することができます。

admin_ip-172-20-47-164___.png

インストール

macOSの方はbrewでインストールできます。

brew tap johanhaleby/kubetail && brew install kubetail

その他の環境の場合はbashで書かれているので、https://raw.githubusercontent.com/johanhaleby/kubetail/master/kubetail このファイルをダウンロードして適切な場所に配置します。

Serviceに含まれるPodのログを確認する

kubetail {$service_name}

Podの名前を複数指定してログを確認する

kubetail app

app から初まるPod名のPodが対象になります。

参考

11
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
2