|
| 1 | +# Kubernetes Metrics Server |
| 2 | + |
| 3 | +[Metrics Server](https://github.com/kubernetes-sigs/metrics-server/) is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines. |
| 4 | + |
| 5 | +## Installing the Chart |
| 6 | + |
| 7 | +Before you can install the chart you will need to add the `metrics-server` repo to [Helm](https://helm.sh/). |
| 8 | + |
| 9 | +```shell |
| 10 | +helm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server/ |
| 11 | +``` |
| 12 | + |
| 13 | +After you've installed the repo you can install the chart. |
| 14 | + |
| 15 | +```shell |
| 16 | +helm upgrade --install metrics-server/metrics-server |
| 17 | +``` |
| 18 | + |
| 19 | +## Configuration |
| 20 | + |
| 21 | +The following table lists the configurable parameters of the _Metrics Server_ chart and their default values. |
| 22 | + |
| 23 | +| Parameter | Description | Default | |
| 24 | +| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | |
| 25 | +| `image.repository` | Image repository. | `k8s.gcr.io/metrics-server/metrics-server` | |
| 26 | +| `image.tag` | Image tag, will override the default tag derived from the chart app version. | `""` | |
| 27 | +| `image.pullPolicy` | Image pull policy. | `IfNotPresent` | |
| 28 | +| `imagePullSecrets` | Image pull secrets. | `[]` | |
| 29 | +| `nameOverride` | Override the `name` of the chart. | `nil` | |
| 30 | +| `fullnameOverride` | Override the `fullname` of the chart. | `nil` | |
| 31 | +| `serviceAccount.create` | If `true`, create a new service account. | `true` | |
| 32 | +| `serviceAccount.annotations` | Annotations to add to the service account. | `{}` | |
| 33 | +| `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the full name template. | `nil` | |
| 34 | +| `rbac.create` | If `true`, create the RBAC resources. | `true` | |
| 35 | +| `rbac.pspEnabled` | If `true`, create a pod security policy resource. | `false` | |
| 36 | +| `apiService.create` | If `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` | |
| 37 | +| `podLabels` | Labels to add to the pod. | `{}` | |
| 38 | +| `podAnnotations` | Annotations to add to the pod. | `{}` | |
| 39 | +| `podSecurityContext` | Security context for the pod. | `{}` | |
| 40 | +| `securityContext` | Security context for the _metrics-server_ container. | _See values.yaml_ | |
| 41 | +| `priorityClassName` | Priority class name to use. | `system-cluster-critical` | |
| 42 | +| `containerPort` | port for the _metrics-server_ container. | `4443` | |
| 43 | +| `hostNetwork.enabled` | If `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` | |
| 44 | +| `replicas` | Number of replicas to run. | `1` | |
| 45 | +| `updateStrategy` | Customise the default update strategy. | `{}` | |
| 46 | +| `podDisruptionBudget.enabled` | If `true`, create `PodDisruptionBudget` resource. | `{}` | |
| 47 | +| `podDisruptionBudget.minAvailable` | Set the `PodDisruptionBugdet` minimum available pods. | `nil` | |
| 48 | +| `podDisruptionBudget.maxUnavailable` | Set the `PodDisruptionBugdet` maximum unavailable pods. | `nil` | |
| 49 | +| `args` | Additional arguments to pass to the _metrics-server_ command. | `[]` | |
| 50 | +| `livenessProbe` | Liveness probe. | See _values.yaml_ | |
| 51 | +| `readinessProbe` | Readiness probe. | See _values.yaml_ | |
| 52 | +| `service.type` | Service type. | `ClusterIP` | |
| 53 | +| `service.port` | Service port. | `443` | |
| 54 | +| `service.annotations` | Annotations to add to the service. | `{}` | |
| 55 | +| `service.labels` | Labels to add to the service. | `{}` | |
| 56 | +| `resources` | Resource requests and limits for the _metrics-server_ container. | `{}` | |
| 57 | +| `extraVolumeMounts` | Additional volume mounts for the _metrics-server_ container. | `[]` | |
| 58 | +| `extraVolumes` | Additional volumes for the pod. | `[]` | |
| 59 | +| `nodeSelector` | Node labels for pod assignment. | `{}` | |
| 60 | +| `tolerations` | Tolerations for pod assignment. | `[]` | |
| 61 | +| `affinity` | Affinity for pod assignment. | `{}` | |
0 commit comments