トラブルシューティング
Kubernetesクラスターでkubectlコマンドのtopサブコマンド(kubectl top nodes / kubectl top pods)を利用してリソース使用状況を確認するために、事前にクラスターへデプロイしておく必要があるコンポーネントはどれか。
- Akube-state-metrics
- ✓metrics-server
- CcAdvisor
- DPrometheus Node Exporter
解説
kubectl top nodesやkubectl top podsはmetrics APIを通じてリソース使用状況を取得するため、metrics-serverがクラスターにデプロイされていることが前提となる。
根拠Troubleshooting: Monitor cluster and application resource usage