Question
The metrics-server has been installed in the cluster. Your colleague would like to know the kubectl commmands to:
kubectl top nodes
echo "kubectl top nodes" > /opt/course/7/node.sh
For pods:
kubectl top pods --containers
echo "kubectl top pods --containers" > /opt/course/7/pod.sh
Verify:
bash /opt/course/7/node.sh
bash /opt/course/7/pod.sh