Enable metrics-server

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

  1. Download the current MKE configuration file, replacing $MKE_HOST and $AUTHTOKEN with your controller URL and bearer token:

    curl --silent --insecure -H "Authorization: Bearer $AUTHTOKEN" \
      "https://${MKE_HOST}/api/ucp/config-toml" > mke-config.toml
    
  2. Locate the cluster_config.metrics_server option:

    [cluster_config.metrics_server]
      enabled = false
      replicas = 2
    

    For detailed information on the cluster_config.descheduler configuration parameter, refer to the configuration options detail.

  3. Set the enabled parameter to true.

  4. Upload the updated MKE configuration file:

    curl --silent --insecure -X PUT -H "accept: application/toml" \
      -H "Authorization: Bearer $AUTHTOKEN" \
      --upload-file mke-config.toml \
      "https://${MKE_HOST}/api/ucp/config-toml"
    
  5. Wait for cluster reconciliation and Verify metrics-server.