Verify metrics-server

Use the following checks to verify that metrics-server is deployed and available.

  1. Verify the deployment and Pods:

    kubectl get deployment -n kube-system ucp-metrics-server
    kubectl get pods -n kube-system -l k8s-app=ucp-metrics-server
    

    Make sure that the Ready deployment replicas value matches the configured replicas value and that at least one Pod is in the Running state.

  2. Verify the service:

    kubectl get svc -n kube-system ucp-metrics-server
    

    Make sure that the service is of type ClusterIP and that it exposes HTTPS to the metrics-server Pods. MKE uses a fixed secure listen port inside the container and exposes that port through the service.

  3. Verify the aggregated API (APIService):

    kubectl get apiservice v1beta1.metrics.k8s.io -o yaml
    

    Check for the following configuration:

    • spec.service references the metrics-server service in the kube-system namespace.

    • spec.insecureSkipTLSVerify is set to false.

    • spec.caBundle is present and non-empty.

    If the APIService Available condition is not True, wait for the Pods to become ready and re-run the command.