0
0
Kubernetesdevops~20 mins

Metrics Server installation in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Metrics Server Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2: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-server
AError from server (NotFound): pods "metrics-server" not found
BNo resources found in kube-system namespace.
C
NAME                            READY   STATUS           RESTARTS   AGE
metrics-server-abcdef123-xyz12  0/1     CrashLoopBackOff 3          5m
D
NAME                            READY   STATUS    RESTARTS   AGE
metrics-server-abcdef123-xyz12  1/1     Running   0          5m
Attempts:
2 left
💡 Hint
Look for pods labeled with k8s-app=metrics-server in the kube-system namespace and check their status.
🧠 Conceptual
intermediate
1:30remaining
Purpose of Metrics Server in Kubernetes
What is the primary purpose of the Metrics Server in a Kubernetes cluster?
ATo collect resource usage data like CPU and memory from nodes and pods for autoscaling and monitoring.
BTo store persistent logs of all cluster events for auditing purposes.
CTo manage network policies and firewall rules between pods.
DTo schedule pods onto nodes based on resource availability.
Attempts:
2 left
💡 Hint
Think about what data autoscalers need to function.
Troubleshoot
advanced
2: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?
AMetrics Server pod is not running or crashed.
Bkubectl client version is outdated and incompatible.
CThe kubelet service on nodes is disabled.
DThe cluster has no nodes registered.
Attempts:
2 left
💡 Hint
Check the status of Metrics Server pods first.
Configuration
advanced
2: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?
A--allow-insecure-connections
B--disable-tls-verification
C--kubelet-insecure-tls
D--skip-tls-check
Attempts:
2 left
💡 Hint
Look for the official flag documented for kubelet TLS issues.
🔀 Workflow
expert
3: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:
A3,1,2,4
B1,2,3,4
C1,3,2,4
D2,1,3,4
Attempts:
2 left
💡 Hint
Think about the logical order: get files, apply, check pods, then test metrics.