LoginSignup
0
0

More than 1 year has passed since last update.

よく使う Kubernetes 関連コマンド

Last updated at Posted at 2022-05-07

背景

最近業務で Kubernetes を扱う機会があったので、その過程で使ったコマンド群をメモしておく。

コマンド一覧

  • kubectl get pods
    • すべての pod のリストを表示する。
  • kubectl describe pods <pod-name>
    • pod の詳細な情報を表示する
  • kubectl apply -f <file-name>
    • ファイルを使って、リソースの設定を変更する
  • kubectl exec -ti <mysql-pod-name> -- bash
    • MySQL の pod にログインする
  • kubectl logs -f <pod-name>
    • pod のエラー内容を確認する。
  • kubectl rollout restart deploy <Container-name>
    • pod を再起動する
0
0
0

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
0
0