Challenge - 5 Problems
Metrics Server Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Check Metrics Server pods status after installation
You installed Metrics Server in your Kubernetes cluster. What is the output of the command
kubectl get pods -n kube-system -l k8s-app=metrics-server if the installation was successful and pods are running?Kubernetes
kubectl get pods -n kube-system -l k8s-app=metrics-serverAttempts:
2 left
💡 Hint
Look for pods labeled with k8s-app=metrics-server in the kube-system namespace and check their status.
✗ Incorrect
When Metrics Server is installed correctly, its pod should be in Running status with all containers ready.
🧠 Conceptual
intermediate1:30remaining
Purpose of Metrics Server in Kubernetes
What is the primary purpose of the Metrics Server in a Kubernetes cluster?
Attempts:
2 left
💡 Hint
Think about what data autoscalers need to function.
✗ Incorrect
Metrics Server collects resource usage metrics such as CPU and memory from nodes and pods, enabling features like Horizontal Pod Autoscaler.
❓ Troubleshoot
advanced2:00remaining
Diagnosing Metrics Server API access failure
After installing Metrics Server, you run
kubectl top nodes but get the error: error: metrics API not available. Which of the following is the most likely cause?Attempts:
2 left
💡 Hint
Check the status of Metrics Server pods first.
✗ Incorrect
If Metrics Server pods are not running, the metrics API will not be available, causing this error.
❓ Configuration
advanced2:00remaining
Correct flag to enable insecure TLS for Metrics Server
You want to deploy Metrics Server but your cluster uses self-signed certificates causing TLS errors. Which flag should you add to the Metrics Server deployment args to allow insecure TLS communication?
Attempts:
2 left
💡 Hint
Look for the official flag documented for kubelet TLS issues.
✗ Incorrect
The official flag to allow Metrics Server to skip TLS verification when connecting to kubelets is --kubelet-insecure-tls.
🔀 Workflow
expert3:00remaining
Order the steps to install Metrics Server correctly
Arrange the following steps in the correct order to install Metrics Server on a Kubernetes cluster:
Attempts:
2 left
💡 Hint
Think about the logical order: get files, apply, check pods, then test metrics.
✗ Incorrect
First download the manifest, then apply it to create resources, check pods are running, and finally test metrics API.