Interview Prep/Kubernetes/Control plane, RBAC, webhooks and autoscaling

An aggregated API (`kubectl get --raw /apis/metrics.k8s.io/v1beta1`) returns `Error from server (ServiceUnavailable): the server is currently unable to handle the request`, and many tools print discovery warnings.

IntermediateTroubleshootingControl plane, RBAC, webhooks and autoscaling
Answer

Likely causes → The API server cannot reach the backing Service of the APIService: Pods down, NetworkPolicy blocking the control plane, or on EKS/private clusters the cluster security group does not allow the control plane to reach the Pod port.

Diagnose →

kubectl get apiservice v1beta1.metrics.k8s.io -o yaml | yq '.spec.service, .status.conditions'
kubectl get pods -n kube-system -l k8s-app=metrics-server -o wide

Fix → Bring the backend up, allow ingress from the control plane to the Pod port (e.g. 10250 or 4443 for metrics-server) in security groups and NetworkPolicies.

Prevent → Include aggregated APIs in health dashboards; broken discovery breaks namespace deletion, kubectl and GitOps tools.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Control plane, RBAC, webhooks and autoscaling