0
0
Kubernetesdevops~5 mins

Metrics Server installation in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the Metrics Server in Kubernetes?
The Metrics Server collects resource usage data like CPU and memory from nodes and pods. It helps Kubernetes make decisions for scaling and monitoring.
Click to reveal answer
beginner
Which command installs the Metrics Server using kubectl?
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
Click to reveal answer
intermediate
Why might you need to edit the Metrics Server deployment after installation?
You may need to add flags like --kubelet-insecure-tls if your cluster uses self-signed certificates, to allow Metrics Server to communicate with kubelets.
Click to reveal answer
beginner
How can you verify that the Metrics Server is running correctly?
Run kubectl get deployment metrics-server -n kube-system to check the deployment status and kubectl top nodes to see if metrics are available.
Click to reveal answer
intermediate
What role does the Metrics Server play in Horizontal Pod Autoscaling (HPA)?
Metrics Server provides the resource usage data that HPA uses to decide when to scale pods up or down based on CPU or memory usage.
Click to reveal answer
Which command installs the Metrics Server in Kubernetes?
Akubectl create deployment metrics-server
Bkubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
Ckubectl install metrics-server
Dkubectl get metrics-server
What does the Metrics Server collect from Kubernetes nodes and pods?
ANetwork traffic data
BPod logs
CResource usage data like CPU and memory
DPersistent volume usage
If Metrics Server cannot communicate with kubelets due to TLS errors, what flag might you add?
A--kubelet-insecure-tls
B--enable-logging
C--allow-unauthenticated
D--disable-metrics
How do you check if Metrics Server is successfully deployed?
Akubectl logs metrics-server
Bkubectl get pods -n default
Ckubectl describe node
Dkubectl get deployment metrics-server -n kube-system
What Kubernetes feature depends on Metrics Server for scaling decisions?
AHorizontal Pod Autoscaler (HPA)
Bkubectl rollout
Ckubectl exec
DPersistent Volume Claims
Explain the steps to install and verify the Metrics Server in a Kubernetes cluster.
Think about installation, deployment check, and metrics verification commands.
You got /3 concepts.
    Describe why Metrics Server might need configuration changes after installation and what those changes could be.
    Consider common issues with self-signed certificates in clusters.
    You got /3 concepts.