Skip to main content

Pregunta 7 - Uso de Recursos de Nodos y 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.


# Haz un kubectl top -h para ver los posibles 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