Edit

Share via


Metrics server on an AKS Edge Essentials cluster

The metrics server is a tool that inspects your containers' resource consumption. You can find the YAML file for the metrics server deployment in the /Samples/Other folder in the GitHub repo.

Deploy metrics server

Note

AKS Edge Essentials K8s does not support Kubernetes TLS bootstrapping. To deploy the metrics server using K8s, be sure to include --kubelet-insecure-tls in your deployment YAML.

Step 1: deploy the metrics server manifest

kubectl apply -f https://raw.githubusercontent.com/Azure/AKS-Edge/main/samples/others/metrics-server.yaml

Wait for the metrics server pods to reach the running status. It might take a few minutes.

kubectl get pods -A --watch

Screenshot of results showing metrics pod running.

Step 2: View your resource consumption

kubectl top nodes
kubectl top pods -A

Screenshot of results showing metrics server installed.

If your metrics server fails to display, this could be a known MTU issue in which the Linux VM's MTU doesn't match that of your network. This issue can happen on Azure VMs. Set your MTU parameter to 1300 in your AksEdgeConfig file, as follows:

{
    "LinuxVm": {
        "CpuCount": 4,
        "MemoryInMB": 4096,
        "Mtu": 1300
    }
}

Next steps