- Home
- Operations Guide
- Administer an MKE cluster
- Collect MKE cluster metrics with metrics-server
- Verify metrics-server
Verify metrics-server#
Use the following checks to verify that metrics-server is deployed and available.
-
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-serverMake sure that the
Readydeployment replicas value matches the configuredreplicasvalue and that at least one Pod is in theRunningstate. -
Verify the service:
kubectl get svc -n kube-system ucp-metrics-serverMake sure that the service is of type
ClusterIPand 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. -
Verify the aggregated API (APIService):
kubectl get apiservice v1beta1.metrics.k8s.io -o yamlCheck for the following configuration:
spec.servicereferences the metrics-server service in thekube-systemnamespace.spec.insecureSkipTLSVerifyis set tofalse.spec.caBundleis present and non-empty.
If the APIService
Availablecondition is notTrue, wait for the Pods to become ready and re-run the command.