Pular para o conteúdo principal

Questão 7 - Uso de Recursos de Nós e Pods

Question 7 | Node and Pod Resource Usage

The metrics-server has been installed in the cluster. Your college would like to know the kubectl commands to:

  1. show Nodes resource usage

  2. show Pods and their containers resource usage

Please write the commands into /opt/course/7/node.sh and /opt/course/7/pod.sh.


# Faça um kubectl top -h para ver os possíveis comandos

echo 'kubectl top nodes' > /opt/course/7/node.sh
sh /opt/course/7/node.sh

echo 'kubectl top pod --containers=true' > /opt/course/7/pod.sh
sh /opt/course/7/pod.sh