metrics-server

by sarwank

Helm chartv3.8.2App 0.6.1Verified 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.k8s.gcr.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
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
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.4443
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
updateStrategyCustomise the default update strategy.{}
podDisruptionBudget.enabledIf true, create PodDisruptionBudget resource.{}
podDisruptionBudget.minAvailableSet the PodDisruptionBugdet minimum available pods.nil
podDisruptionBudget.maxUnavailableSet the PodDisruptionBugdet 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.See values.yaml
service.typeService type.ClusterIP
service.portService port.443
service.annotationsAnnotations to add to the service.{}
service.labelsLabels to add to the service.{}
metrics.enabledIf true, allow unauthenticated access to /metrics.false
serviceMonitor.enabledIf true, create a Prometheus service monitor. This needs metrics.enabled to be true.false
serviceMonitor.additionalLabelsAdditional labels to be set on the ServiceMonitor.{}
serviceMonitor.intervalPrometheus scrape frequency.1m
serviceMonitor.scrapeTimeoutPrometheus scrape timeout.

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.8.2 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