metrics-server
Metrics Server aggregates resource usage data, such as container CPU and memory usage, in a Kubernetes cluster and makes it available via the Metrics API.
About this chart
Metrics Server packaged by Bitnami
Metrics Server aggregates resource usage data, such as container CPU and memory usage, in a Kubernetes cluster and makes it available via the Metrics API.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/metrics-server
Introduction
This chart bootstraps a Metrics Server deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/metrics-server
These commands deploy Metrics Server on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override common.names.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override common.names.fullname template | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonLabels | Add labels to all the deployed resources | {} |
commonAnnotations | Add annotations to all the deployed resources | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the the deployment(s)/statefulset(s) | ["sleep"] |
diagnosticMode.args | Args to override all containers in the the deployment(s)/statefulset(s) | ["infinity"] |
Metrics Server parameters
| Name | Description | Value |
|---|---|---|
image.registry | Metrics Server image registry | docker.io |
image.repository | Metrics Server image repository | bitnami/metrics-server |
image.tag | Metrics Server image tag (immutable tags are recommended) | 0.6.1-debian-11-r46 |
image.digest | Metrics Server image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Metrics Server image pull policy | IfNotPresent |
image.pullSecrets | Metrics Server image pull secrets | [] |
hostAliases | Add deployment host aliases | [] |
replicas | Number of metrics-server nodes to deploy | 1 |
updateStrategy.type | Set up update strategy for metrics-server installation. | RollingUpdate |
rbac.create | Enable RBAC authentication | true |
serviceAccount.create | Specifies whether a ServiceAccount should be created | true |
serviceAccount.name | The name of the ServiceAccount to create | "" |
serviceAccount.automountServiceAccountToken | Automount API credentials for a service account | true |
serviceAccount.annotations | Annotations for service account. Evaluated as a template. Only used if create is true. | {} |
apiService.create | Specifies whether the v1beta1.metrics.k8s.io API service should be created. You can check if it is needed with kubectl get --raw "/apis/metrics.k8s.io/v1beta1/nodes". | false |
apiService.insecureSkipTLSVerify | Specifies whether to skip self-verifying self-signed TLS certificates. Set to "false" if you are providing your own certificates. | true |
apiService.caBundle | A base64-encoded string of concatenated certificates for the CA chain for the APIService. | "" |
containerPorts.https | Port where metrics-server will be running | 8443 |
hostNetwork | Enable hostNetwork mode | false |
dnsPolicy | Default dnsPolicy setting | ClusterFirst |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
lifecycleHooks | for the metrics-server container(s) to automate configuration before or after startup | {} |
extraEnvVars | Array with extra environment variables to add to metrics-server nodes | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars for metrics-server nodes | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars for metrics-server nodes | "" |
extraArgs | Extra arguments to pass to metrics-server on start up | [] |
sidecars | Add additional sidecar containers to the metrics-server pod(s) | [] |
initContainers | Add additional init containers to the metrics-server pod(s) | [] |
podLabels | Pod labels | {} |
podAnnotations | Pod annotations | {} |
priorityClassName | Priority class for pod scheduling | "" |
schedulerName | Name of the k8s scheduler (other than default) | "" |
terminationGracePeriodSeconds | In seconds, time the given to the metrics-server pod needs to terminate gracefully | "" |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
pdb.create | Create a PodDisruptionBudget |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmetrics-server is pinned at v6.2.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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