`kubectl get hpa` shows `TARGETS <unknown>/70%` and the HPA never scales, even under heavy load.
BeginnerTroubleshootingKubernetes cluster-level
Answer
Likely causes → The HPA can't read metrics: metrics-server isn't installed or is failing (often a kubelet TLS error), or the pods have no CPU request, so a percentage target can't be calculated.
Diagnose →
kubectl describe hpa web | grep -A5 Conditions
kubectl get apiservice v1beta1.metrics.k8s.io
kubectl top pods
kubectl -n kube-system logs deploy/metrics-server | tail
kubectl get deploy web -o jsonpath='{.spec.template.spec.containers[*].resources.requests}'
Fix → Install or repair metrics-server, and set CPU requests on every container in the pod (including sidecars).
Prevent → Include metrics-server in the cluster baseline, require resource requests via policy, and alert on HPAs whose ScalingActive condition is False.
More on Kubernetes cluster-level
Every `kubectl` command fails with "The connection to the server 10.0.1.10:6443 was refused - did you specify the right host or port?"BeginnerA new deployment's pods stay Pending with "0/5 nodes are available: 5 Insufficient cpu. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod."BeginnerPods are Pending, but Cluster Autoscaler won't add nodes; the pod events say "pod didn't trigger scale-up: 2 node(s) didn't match Pod's node affinity/selector, 1 max node group size reached".IntermediateA node goes NotReady and kubelet logs "PLEG is not healthy: pleg was last seen active 3m10s ago; threshold is 3m0s".IntermediateAfter a node was terminated, its pods have shown `Terminating` for two hours and their replacements aren't being created.IntermediateYou deleted a namespace an hour ago and it's still `Terminating`.Intermediate