Skip to main content

Metrics Server

By default, RKE deploys Metrics Server to provide metrics on resources in your cluster.

RKE will deploy Metrics Server as a Deployment.

The image used for Metrics Server is under the system_images directive. For each Kubernetes version, there is a default image associated with the Metrics Server, but these can be overridden by changing the image tag in system_images.

Tolerations

Available as of v1.2.4

The configured tolerations apply to the metrics-server Deployment.

monitoring:
tolerations:
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationseconds: 300
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
tolerationseconds: 300

To check for applied tolerations on the metrics-server Deployment, use the following commands:

kubectl -n kube-system get deploy metrics-server -o jsonpath='{.spec.template.spec.tolerations}'

Metrics Server Priority Class Name

Available as of RKE v1.2.6+

The pod priority is set by configuring a priority class name:

monitoring:
provider: metrics-server
metrics_server_priority_class_name: system-cluster-critical

Disabling the Metrics Server

Available as of v0.2.0

You can disable the default controller by specifying none to the monitoring provider directive in the cluster configuration.

monitoring:
provider: none