metrics-server

by apecloud

Helm chartv3.12.0App 0.7.0Verified publisher

Metrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines.

About this chart

Kubernetes Metrics Server

Metrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines.

Installing the Chart

Before you can install the chart you will need to add the metrics-server repo to Helm.

helm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server/

After you've installed the repo you can install the chart.

helm upgrade --install metrics-server metrics-server/metrics-server

Configuration

The following table lists the configurable parameters of the Metrics Server chart and their default values.

ParameterDescriptionDefault
image.repositoryImage repository.registry.k8s.io/metrics-server/metrics-server
image.tagImage tag, will override the default tag derived from the chart app version.""
image.pullPolicyImage pull policy.IfNotPresent
imagePullSecretsImage pull secrets.[]
nameOverrideOverride the name of the chart.nil
fullnameOverrideOverride the fullname of the chart.nil
serviceAccount.createIf true, create a new service account.true
serviceAccount.annotationsAnnotations to add to the service account.{}
serviceAccount.nameService account to be used. If not set and serviceAccount.create is true, a name is generated using the full name template.nil
serviceAccount.secretsThe list of secrets mountable by this service account. See https://kubernetes.io/docs/reference/labels-annotations-taints/#enforce-mountable-secrets[]
rbac.createIf true, create the RBAC resources.true
rbac.pspEnabledIf true, create a pod security policy resource.false
apiService.createIf true, create the v1beta1.metrics.k8s.io API service. You typically want this enabled! If you disable API service creation you have to manage it outside of this chart for e.g horizontal pod autoscaling to work with this release.true
apiService.annotationsAnnotations to add to the API service{}
apiService.insecureSkipTLSVerifySpecifies whether to skip TLS verification (NOTE: this setting is not a proxy for the --kubelet-insecure-tls metrics-server flag)true
apiService.caBundleThe PEM encoded CA bundle for TLS verification""
commonLabelsLabels to add to each object of the chart.{}
podLabelsLabels to add to the pod.{}
podAnnotationsAnnotations to add to the pod.{}
podSecurityContextSecurity context for the pod.{}
securityContextSecurity context for the metrics-server container.See values.yaml
priorityClassNamePriority class name to use.system-cluster-critical
containerPortport for the metrics-server container.10250
hostNetwork.enabledIf true, start metric-server in hostNetwork mode. You would require this enabled if you use alternate overlay networking for pods and API server unable to communicate with metrics-server. As an example, this is required if you use Weave network on EKS.false
replicasNumber of replicas to run.1
revisionHistoryLimitNumber of revisions to keep.nil
updateStrategyCustomise the default update strategy.{}
podDisruptionBudget.enabledIf true, create PodDisruptionBudget resource.{}
podDisruptionBudget.minAvailableSet the PodDisruptionBudget minimum available pods.nil
podDisruptionBudget.maxUnavailableSet the PodDisruptionBudget maximum unavailable pods.nil
defaultArgsDefault arguments to pass to the metrics-server command.See values.yaml
argsAdditional arguments to pass to the metrics-server command.[]
livenessProbeLiveness probe.See values.yaml
readinessProbeReadiness probe.

Deploy metrics-server with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has metrics-server on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmetrics-server is pinned at v3.12.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply