Loading video player...
#devops #devopsengineering #kubernetes #kubectl One kubectl command. Full pod resource visibility. 🔍 kubectl get pods -n namespace ` -o custom-columns="POD:.metadata.name,CPU_REQUEST:.spec.containers[].resources.requests.cpu,CPU_LIMIT:.spec.containers[].resources.limits.cpu,MEM_REQUEST:.spec.containers[].resources.requests.memory,MEM_LIMIT:.spec.containers[].resources.limits.memory" This command lists all pods in a namespace along with their CPU & Memory requests and limits. 🔹 Command Breakdown kubectl get pods -n namespace 👉 Fetches all pods from the given namespace -o custom-columns=... 👉 Custom output format (no messy default output) POD:.metadata.name 👉 Pod name CPU_REQUEST / CPU_LIMIT 👉 Minimum vs Maximum CPU allocated MEM_REQUEST / MEM_LIMIT 👉 Minimum vs Maximum memory allocated 💡 Why this matters? Spot over-allocated pods Detect missing resource limits Improve cluster stability Avoid OOMKills & CPU throttling ⚡ Perfect for debugging, audits, and cost optimization.