Skip to content

Does EKS 1.31 Come with Metrics Server Preinstalled?

0

I have created an EKS cluster (version 1.31) and attempted to install the Metrics Server using the following Helm command:

helm upgrade -i metrics-server metrics-server/metrics-server -n kube-system --set nodeSelector."kubernetes.io/os"=linux However, I encountered the following error: Error: Unable to continue with install: ClusterRoleBinding "metrics-server:system:auth-delegator" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: key "app.kubernetes.io/managed-by" must equal "Helm": current value is "EKS"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "metrics-server"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "kube-system" This suggests that the ClusterRoleBinding already exists but was not managed by Helm. I have not installed Metrics Server manually before in this cluster. Does EKS version 1.31 come with Metrics Server preinstalled as an addon?

asked 2 years ago606 views

2 Answers
1

Based on the information available, EKS version 1.31 does not come with Metrics Server preinstalled as a default addon. However, the error message you encountered suggests that there might already be a Metrics Server installation present in your cluster, but it's not managed by Helm.

Amazon EKS now offers the ability to deploy Metrics Server as a community add-on using the AWS console or Amazon EKS APIs. This is a relatively new feature, which might explain why you're seeing components of Metrics Server already in your cluster.

If you want to install Metrics Server using Helm, you might need to remove the existing installation first. Alternatively, you could consider using the EKS-managed community add-on approach instead of Helm.

To verify if Metrics Server is already installed and running in your cluster, you can try the following steps:

  1. Check if the Metrics Server deployment exists: kubectl get deployment metrics-server -n kube-system

  2. If it exists, you can test if it's working by running: kubectl top nodes

If these commands show that Metrics Server is already present and functioning, you may not need to install it again using Helm. If you still want to manage it with Helm, you'll need to remove the existing installation first.

Remember, if you decide to use the EKS-managed community add-on approach, you can deploy Metrics Server through the AWS console or EKS APIs, which might be more convenient for EKS users.
Sources
View resource usage with the Kubernetes Metrics Server - Amazon EKS
Community add-ons - Amazon EKS

answered 2 years ago

EXPERT

reviewed 2 years ago

1

Hello,

The Metrics server is not installed by default on EKS 1.31.

However, Metrics Server is available as a community add-on. Before proceeding with the installation via helm, I recommend verifying whether this add-on is already deployed in your cluster.



Reference : https://docs.aws.amazon.com/eks/latest/userguide/community-addons.html#_available_community_add_ons

AWS

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.