- Inspect running pods.
- Deploy a lab-ready Metrics Server instance from the provided repository.
- Use
kubectl topto view node and pod resource consumption and answer a few basic monitoring questions.
1. Inspect the currently deployed pods
Start by listing the pods to confirm the workloads we will monitor:kubectl top can display them.
Do not use the lab-provided manifests as-is in production. These manifests include modifications tailored to the lab environment. Always consult the official Metrics Server documentation and adapt configuration for production deployments.

2. Clone the lab repository and create the resources
Clone the prepared repository (contains manifests adjusted for the lab) and apply all manifests in the directory:After creating the Metrics Server objects it can take a short while for the server to start scraping metrics and for metrics to become available. Give it a minute or two and retry the
kubectl top commands if they initially return errors.3. Verify metrics with kubectl top
When the Metrics Server is ready, use the following commands to inspect node and pod resource usage. Example output for nodes:4. Answering the lab questions
Use thekubectl top outputs above to determine which node and pod consume the most/least resources.
5. Additional references
- Kubernetes Metrics Server (project): https://github.com/kubernetes-sigs/metrics-server
- kubectl top documentation: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#top
kubectl top nodes and kubectl top pods to identify basic resource consumption.