資格スワイプ
アプリケーションの可観測性と保守

複数のコンテナで構成されるPodにおいて、どのコンテナが最もメモリを消費しているかを即座に確認したい場合、最も適したコマンドはどれか。

  • Akubectl get pod <pod-name> -o yaml
  • Bkubectl describe pod <pod-name>
  • Ckubectl top pod <pod-name>
  • ✓kubectl top pod <pod-name> --containers

解説

--containersオプションを付与することで、kubectl topがPod単位ではなくPod内の各コンテナ単位のCPU・メモリ使用率を表示するため、どのコンテナがリソースを消費しているかを即座に特定できる。

根拠シラバス: Use built-in CLI tools to monitor Kubernetes applications

← 前の問題次の問題 →
スワイプでまとめて見る