Disable metrics-server

To disable metrics-server, update the MKE cluster configuration and apply the changes.

  1. Edit the MKE configuration and set enabled to false under [cluster_config.metrics_server]:

    [cluster_config.metrics_server]
      enabled = false
    
  2. Upload the updated configuration to /api/ucp/config-toml by using the same procedure described in Enable metrics-server.

  3. Verify that MKE removed the deployment after reconciliation:

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

    The command should return NotFound.

  4. Confirm that MKE removed the APIService registration:

    kubectl get apiservice v1beta1.metrics.k8s.io
    

    The command should return NotFound. If another add-on registers the same APIService name, verify that the remaining object is not managed by MKE.