
End-to-End CI/CD Pipeline with Docker, GitHub Actions, and Kubernetes
IT Learn TV
Learn how to install and configure the Kubernetes Metrics Server — the core component that enables kubectl top commands and powers the Horizontal Pod Autoscaler (HPA). In this step-by-step tutorial, we’ll cover: ✅ What the Metrics Server is and what it does ✅ Why it’s required for monitoring and autoscaling ✅ How to install it using the official YAML ✅ How to fix common errors using --kubelet-insecure-tls Whether you’re running Minikube, KIND, Docker Desktop, or a cloud Kubernetes cluster (EKS/GKE/AKS) — this guide will help you get your metrics running smoothly. 📘 Commands Used in This Video: wget -q https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.8.0/high-availability-1.21+.yaml nano high-availability-1.21+.yaml kubectl apply -f high-availability-1.21+.yaml kubectl top nodes kubectl top pods -A 🧠 Fix for “Failed to get kubelet metrics” Add this flag (for testing only): --kubelet-insecure-tls ⚠️ Not recommended for production clusters. 🚀 Don’t forget to like 👍, subscribe 🔔, and drop a comment if you want me to cover Horizontal Pod Autoscaler next!