Metrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines.
This is the multi-page printable view of this section. Click here to print.
Metrics Server Configuration
- 1: Metrics Server
- 2: v3.8.2
- 3: v3.12.1
- 4: v3.12.2
1 - Metrics Server
If you have not already done so, make sure your cluster meets the package prerequisites. Be sure to refer to the troubleshooting guide in the event of a problem.
Important
- Starting at
eksctl anywhere
versionv0.12.0
, packages on workload clusters are remotely managed by the management cluster. - While following this guide to install packages on a workload cluster, please make sure the
kubeconfig
is pointing to the management cluster that was used to create the workload cluster. The only exception is thekubectl create namespace
command below, which should be run withkubeconfig
pointing to the workload cluster.
Install
-
Generate the package configuration
-
Add the desired configuration to
metrics-server.yaml
Please see complete configuration options for all configuration options and their default values.
Example package file configuring a cluster autoscaler package to run on a management cluster.
-
Install Metrics Server
-
Validate the installation
Example command output
NAME PACKAGE AGE STATE CURRENTVERSION TARGETVERSION DETAIL metrics-server metrics-server 8h installed 0.6.1-eks-1-23-6-b4c2524fabb3dd4c5f9b9070a418d740d3e1a8a2 0.6.1-eks-1-23-6-b4c2524fabb3dd4c5f9b9070a418d740d3e1a8a2 (latest)
Update
To update package configuration, update metrics-server.yaml file, and run the following command:
Upgrade
Metrics Server will automatically be upgraded when a new bundle is activated.
Uninstall
To uninstall Metrics Server, simply delete the package
2 - v3.8.2
Configuring Metrics Server in EKS Anywhere package spec
Parameter | Description | Default |
---|---|---|
General | ||
args | Additional args to provide to metrics-server Example: cloudProvider: ["–kubelet-insecure-tls"] |
[] |
3 - v3.12.1
Configuring Metrics Server in EKS Anywhere package spec
Parameter | Description | Default |
---|---|---|
General | ||
args | Additional args to provide to metrics-server Example: cloudProvider: ["–kubelet-insecure-tls"] |
[] |
4 - v3.12.2
Configuring Metrics Server in EKS Anywhere package spec
Parameter | Description | Default |
---|---|---|
General | ||
args | Additional args to provide to metrics-server Example: cloudProvider: ["–kubelet-insecure-tls"] |
[] |