···1+# Patterns to ignore when building packages.
2+# This supports shell glob matching, relative path matching, and
3+# negation (prefixed with !). Only one pattern per line.
4+.DS_Store
5+# Common VCS dirs
6+.git/
7+.gitignore
8+.bzr/
9+.bzrignore
10+.hg/
11+.hgignore
12+.svn/
13+# Common backup files
14+*.swp
15+*.bak
16+*.tmp
17+*.orig
18+*~
19+# Various IDEs
20+.project
21+.idea/
22+*.tmproj
23+.vscode/
···1+# Metrics Server Helm Chart Changelog
2+3+> [!NOTE]
4+> All notable changes to this project will be documented in this file; the format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+6+<!--
7+### Added - For new features.
8+### Changed - For changes in existing functionality.
9+### Deprecated - For soon-to-be removed features.
10+### Removed - For now removed features.
11+### Fixed - For any bug fixes.
12+### Security - In case of vulnerabilities.
13+-->
14+15+## [UNRELEASED]
16+17+## [3.13.0] - TBC
18+19+### Added
20+21+- Add chart options to secure the connection between Metrics Server and the Kubernetes API Server. ([#1288](https://github.com/kubernetes-sigs/metrics-server/pull/1288)) _@mkilchhofer_
22+- Add `unhealthyPodEvictionPolicy` to the Metrics Server PDB as a user enabled feature. ([#1574](https://github.com/kubernetes-sigs/metrics-server/pull/1574)) @peterabarr
23+24+### Changed
25+26+- Update the _Addon Resizer_ OCI image to [`1.8.23`](https://github.com/kubernetes/autoscaler/releases/tag/addon-resizer-1.8.23). ([#1626](https://github.com/kubernetes-sigs/metrics-server/pull/1626)) _@stevehipwell_
27+- Update the _Metrics Server_ OCI image to [`0.8.0`](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.8.0). ([#1683](https://github.com/kubernetes-sigs/metrics-server/pull/1683)) _@stevehipwell_
28+29+## [3.12.2] - 2024-10-07
30+31+### Added
32+33+- Explicitly added the app protocol to the service. ([#1540](https://github.com/kubernetes-sigs/metrics-server/pull/1540)) _@
34+seankhliao_
35+36+### Changed
37+38+- Updated the _Metrics Server_ OCI image to [v0.7.2](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.7.2). ([#1568](https://github.com/kubernetes-sigs/metrics-server/pull/1568)) _@stevehipwell_
39+- Updated the _addonResizer_ OCI image to [1.8.21](https://github.com/kubernetes/autoscaler/releases/tag/addon-resizer-1.8.21). ([#1504](https://github.com/kubernetes-sigs/metrics-server/pull/1504)) _@jimmy-ungerman_
40+41+### Fixed
42+43+- Fixed nanny's RoleBinding which contained a hard-coded namespace instead of the Helm's release namespace. ([#1479](https://github.com/kubernetes-sigs/metrics-server/pull/1479)) _@the-technat_
44+- Fixed the `ServiceMonitor` job label. ([#1568](https://github.com/kubernetes-sigs/metrics-server/pull/1568)) _@stevehipwell_
45+46+## [3.12.1] - 2024-04-05
47+48+### Changed
49+50+- Updated the _Metrics Server_ OCI image to [v0.7.1](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.7.1). ([#1461](https://github.com/kubernetes-sigs/metrics-server/pull/1461)) _@stevehipwell_
51+- Changed `Deployment` templating to ignore `schedulerName` when value is empty. ([#1475](https://github.com/kubernetes-sigs/metrics-server/pull/1475)) _@senges_
52+53+## [3.12.0] - 2024-02-07
54+55+### Changed
56+57+- Updated the _Metrics Server_ OCI image to [v0.7.0](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.7.0). ([#1414](https://github.com/kubernetes-sigs/metrics-server/pull/1414)) [@stevehipwell](https://github.com/stevehipwell)
58+- Updated the _addon-resizer_ OCI image to [v1.8.20](https://github.com/kubernetes/autoscaler/releases/tag/addon-resizer-1.8.20). ([#1414](https://github.com/kubernetes-sigs/metrics-server/pull/1414)) [@stevehipwell](https://github.com/stevehipwell)
59+60+## [3.11.0] - 2023-08-03
61+62+### Added
63+64+- Added default _Metrics Server_ resource requests.
65+66+### Changed
67+68+- Updated the _Metrics Server_ OCI image to [v0.6.4](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.6.4).
69+- Updated the _addon-resizer_ OCI image to [v1.8.19](https://github.com/kubernetes/autoscaler/releases/tag/addon-resizer-1.8.19).
70+71+## [3.10.0] - 2023-04-12
72+73+### Added
74+75+- Added support for running under PodSecurity restricted.
76+77+### Fixed
78+79+- Fixed `auth-reader` role binding namespace to always use `kube-system`.
80+- Fixed addon-resizer configuration.
81+- Fixed container port default not having been updated to `10250`.
82+83+## [3.9.0] - 2023-03-28
84+85+### Added
86+87+- Added autoscaling support via the addon-resizer.
88+89+### Changed
90+91+- Updated the _Metrics Server_ OCI image to [v0.6.3](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.6.3).
92+93+### Fixed
94+95+- Fixed service labels/annotations.
96+97+## [3.8.4] - 2023-03-06
98+99+### Changed
100+101+- Changed the image registry location to `registry.k8s.io`.
102+103+## [3.8.3] - 2022-12-08
104+105+### Added
106+107+- Added support for topologySpreadConstraints.
108+- Always set resource namespaces explicitly.
109+- Allow configuring TLS on the APIService.
110+- Enabled service monitor relabelling.
111+- Added ability to set the scheduler name.
112+- Added support for common labels.
113+114+### Changed
115+116+- Updated the _Metrics Server_ OCI image to [v0.6.2](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.6.2).
117+118+## [3.8.2] - 2022-02-23
119+120+### Changed
121+122+- Changed chart to allow probes to be turned off completely (this is not advised unless you know what you're doing).
123+124+## [3.8.1] - 2022-02-09
125+126+### Changed
127+128+- Updated the _Metrics Server_ OCI image to [v0.6.1](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.6.1).
129+130+## [3.8.0] - 2022-02-08
131+132+### Added
133+134+- Added support for unauthenticated access to the /metrics endpoint.
135+- Added optional _Prometheus Operator_ `ServiceMonitor`.
136+137+### Changed
138+139+- Updated the _Metrics Server_ OCI image to [v0.6.0](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.6.0).
140+141+## [3.7.0] - 2021-11-18
142+143+### Changed
144+145+- Updated the _Metrics Server_ OCI image to [v0.5.2](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.5.2).
146+147+## [3.6.0] - 2021-10-18
148+149+### Added
150+151+- Added new `defaultArgs`` value to enable overriding the default arguments.
152+153+### Changed
154+155+- Updated the _Metrics Server_ OCI image to [v0.5.1](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.5.1).
156+157+## [3.5.0] - 2021-10-07
158+159+### Added
160+161+- Added initial Helm chart release from official repo.
162+163+<!--
164+RELEASE LINKS
165+-->
166+[UNRELEASED]: https://github.com/kubernetes-sigs/metrics-server/tree/master/charts/metrics-server
167+[3.13.0]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.13.0
168+[3.12.2]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.12.2
169+[3.12.1]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.12.1
170+[3.12.0]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.12.0
171+[3.11.0]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.11.0
172+[3.10.0]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.10.0
173+[3.9.0]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.9.0
174+[3.8.4]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.8.4
175+[3.8.3]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.8.3
176+[3.8.2]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.8.2
177+[3.8.1]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.8.1
178+[3.8.0]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.8.0
179+[3.7.0]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.7.0
180+[3.6.0]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.6.0
181+[3.5.0]: https://github.com/kubernetes-sigs/metrics-server/releases/tag/metrics-server-helm-chart-3.5.0
···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/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. | `registry.k8s.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+| `serviceAccount.secrets` | The list of secrets mountable by this service account. See <https://kubernetes.io/docs/reference/labels-annotations-taints/#enforce-mountable-secrets> | `[]` |
35+| `rbac.create` | If `true`, create the RBAC resources. | `true` |
36+| `rbac.pspEnabled` | If `true`, create a pod security policy resource, unless Kubernetes version is 1.25 or later. | `false` |
37+| `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` |
38+| `apiService.annotations` | Annotations to add to the API service | `{}` |
39+| `apiService.insecureSkipTLSVerify` | Specifies whether to skip TLS verification (NOTE: this setting is not a proxy for the `--kubelet-insecure-tls` metrics-server flag) | `true` |
40+| `apiService.caBundle` | The PEM encoded CA bundle for TLS verification | `""` |
41+| `commonLabels` | Labels to add to each object of the chart. | `{}` |
42+| `podLabels` | Labels to add to the pod. | `{}` |
43+| `podAnnotations` | Annotations to add to the pod. | `{}` |
44+| `podSecurityContext` | Security context for the pod. | `{}` |
45+| `securityContext` | Security context for the _metrics-server_ container. | _See values.yaml_ |
46+| `priorityClassName` | Priority class name to use. | `system-cluster-critical` |
47+| `containerPort` | port for the _metrics-server_ container. | `10250` |
48+| `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` |
49+| `replicas` | Number of replicas to run. | `1` |
50+| `revisionHistoryLimit` | Number of revisions to keep. | `nil` |
51+| `updateStrategy` | Customise the default update strategy. | `{}` |
52+| `podDisruptionBudget.enabled` | If `true`, create `PodDisruptionBudget` resource. | `{}` |
53+| `podDisruptionBudget.minAvailable` | Set the `PodDisruptionBudget` minimum available pods. | `nil` |
54+| `podDisruptionBudget.maxUnavailable` | Set the `PodDisruptionBudget` maximum unavailable pods. | `nil` |
55+| `podDisruptionBudget.maxUnavailable` | Set the `PodDisruptionBudget` maximum unavailable pods. | `nil` |
56+| `podDisruptionBudget.unhealthyPodEvictionPolicy` | Unhealthy pod eviction policy for the PDB. | `nil` |
57+| `defaultArgs` | Default arguments to pass to the _metrics-server_ command. | See _values.yaml_ |
58+| `args` | Additional arguments to pass to the _metrics-server_ command. | `[]` |
59+| `livenessProbe` | Liveness probe. | See _values.yaml_ |
60+| `readinessProbe` | Readiness probe. | See _values.yaml_ |
61+| `service.type` | Service type. | `ClusterIP` |
62+| `service.port` | Service port. | `443` |
63+| `service.annotations` | Annotations to add to the service. | `{}` |
64+| `service.labels` | Labels to add to the service. | `{}` |
65+| `addonResizer.enabled` | If `true`, run the addon-resizer as a sidecar to automatically scale resource requests with cluster size. | `false` |
66+| `addonResizer.securityContext` | Security context for the _metrics_server_container. | _See values.yaml |
67+| `addonResizer.image.repository` | addon-resizer image repository | `registry.k8s.io/autoscaling/addon-resizer` |
68+| `addonResizer.image.tag` | addon-resizer image tag | `1.8.23` |
69+| `addonResizer.resources` | Resource requests and limits for the _nanny_ container. | `{ requests: { cpu: 40m, memory: 25Mi }, limits: { cpu: 40m, memory: 25Mi } }` |
70+| `addonResizer.nanny.cpu` | The base CPU requirement. | `0m` |
71+| `addonResizer.nanny.extraCPU` | The amount of CPU to add per node. | `1m` |
72+| `addonResizer.nanny.memory` | The base memory requirement. | `0Mi` |
73+| `addonResizer.nanny.extraMemory` | The amount of memory to add per node. | `2Mi` |
74+| `addonResizer.nanny.minClusterSize` | Specifies the smallest number of nodes resources will be scaled to. | `100` |
75+| `addonResizer.nanny.pollPeriod` | The time, in milliseconds, to poll the dependent container. | `300000` |
76+| `addonResizer.nanny.threshold` | A number between 0-100. The dependent's resources are rewritten when they deviate from expected by more than threshold. | `5` |
77+| `metrics.enabled` | If `true`, allow unauthenticated access to `/metrics`. | `false` |
78+| `serviceMonitor.enabled` | If `true`, create a _Prometheus_ service monitor. This needs `metrics.enabled` to be `true`. | `false` |
79+| `serviceMonitor.additionalLabels` | Additional labels to be set on the ServiceMonitor. | `{}` |
80+| `serviceMonitor.metricRelabelings` | _Prometheus_ metric relabeling. | `[]` |
81+| `serviceMonitor.relabelings` | _Prometheus_ relabeling. | `[]` |
82+| `serviceMonitor.interval` | _Prometheus_ scrape frequency. | `1m` |
83+| `serviceMonitor.scrapeTimeout` | _Prometheus_ scrape timeout. | `10s` |
84+| `resources` | Resource requests and limits for the _metrics-server_ container. See <https://github.com/kubernetes-sigs/metrics-server#scaling> | `{ requests: { cpu: 100m, memory: 200Mi }}` |
85+| `extraVolumeMounts` | Additional volume mounts for the _metrics-server_ container. | `[]` |
86+| `extraVolumes` | Additional volumes for the pod. | `[]` |
87+| `nodeSelector` | Node labels for pod assignment. | `{}` |
88+| `tolerations` | Tolerations for pod assignment. | `[]` |
89+| `affinity` | Affinity for pod assignment. | `{}` |
90+| `topologySpreadConstraints` | Pod Topology Spread Constraints. | `[]` |
91+| `deploymentAnnotations` | Annotations to add to the deployment. | `{}` |
92+| `schedulerName` | scheduler to set to the deployment. | `""` |
93+| `dnsConfig` | Set the dns configuration options for the deployment. | `{}` |
94+| `tmpVolume` | Volume to be mounted in Pods for temporary files. | `{"emptyDir":{}}` |
95+| `tls.type` | TLS option to use. Either use `metrics-server` for self-signed certificates, `helm`, `cert-manager` or `existingSecret`. | `"metrics-server"` |
96+| `tls.clusterDomain` | Kubernetes cluster domain. Used to configure Subject Alt Names for the certificate when using `tls.type` `helm` or `cert-manager`. | `"cluster.local"` |
97+| `tls.certManager.addInjectorAnnotations` | Automatically add the cert-manager.io/inject-ca-from annotation to the APIService resource. | `true` |
98+| `tls.certManager.existingIssuer.enabled` | Use an existing cert-manager issuer | `false` |
99+| `tls.certManager.existingIssuer.kind` | Kind of the existing cert-manager issuer | `"Issuer"` |
100+| `tls.certManager.existingIssuer.name` | Name of the existing cert-manager issuer | `"my-issuer"` |
101+| `tls.certManager.duration` | Set the requested duration (i.e. lifetime) of the Certificate. | `""` |
102+| `tls.certManager.renewBefore` | How long before the currently issued certificate’s expiry cert-manager should renew the certificate. | `""` |
103+| `tls.certManager.annotations` | Add extra annotations to the Certificate resource | `{}` |
104+| `tls.certManager.labels` | Add extra labels to the Certificate resource | `{}` |
105+| `tls.helm.certDurationDays` | Cert validity duration in days | `365` |
106+| `tls.helm.lookup` | Use helm lookup function to reuse Secret created in previous helm install | `true` |
107+| `tls.existingSecret.lookup` | Use helm lookup function to provision `apiService.caBundle` | `true` |
108+| `tls.existingSecret.name` | Name of the existing Secret to use for TLS | `""` |
109+110+## Hardening metrics-server
111+112+By default, metrics-server is using a self-signed certificate which is generated during startup. The `APIservice` resource is registered with `.spec.insecureSkipTLSVerify` set to `true` as you can see here:
113+114+```yaml
115+apiVersion: apiregistration.k8s.io/v1
116+kind: APIService
117+metadata:
118+ name: v1beta1.metrics.k8s.io
119+spec:
120+ #..
121+ insecureSkipTLSVerify: true # <-- see here
122+ service:
123+ name: metrics-server
124+ #..
125+```
126+127+To harden metrics-server, you have these options described in the following section.
128+129+### Option 1: Let helm generate a self-signed certificate
130+131+This option is probably the easiest solution for you. We delegate the process to generate a self-signed certificate to helm.
132+As helm generates them during deploy time, helm can also inject the `apiService.caBundle` for you.
133+134+**The only disadvantage of using this method is that it is not GitOps friendly** (e.g. Argo CD). If you are using one of these
135+GitOps tools with drift detection, it will always detect changes. However if you are deploying the helm chart via Terraform
136+for example (or maybe even Flux), this method is perfectly fine.
137+138+To use this method, please setup your values file like this:
139+140+```yaml
141+apiService:
142+ insecureSkipTLSVerify: false
143+tls:
144+ type: helm
145+```
146+147+### Option 2: Use cert-manager
148+149+> **Requirement:** cert-manager needs to be installed before you install metrics-server
150+151+To use this method, please setup your values file like this:
152+153+```yaml
154+apiService:
155+ insecureSkipTLSVerify: false
156+tls:
157+ type: cert-manager
158+```
159+160+There are other optional parameters, if you want to customize the behavior of the certificate even more.
161+162+### Option 3: Use existing Secret
163+164+This option allows you to reuse an existing Secret. This Secrets can have an arbitrary origin, e.g.
165+166+- Created via kubectl / Terraform / etc.
167+- Synced from a secret management solution like AWS Secrets Manager, HashiCorp Vault, etc.
168+169+When using this type of TLS option, the keys `tls.key` and the `tls.crt` key must be provided in the data field of the
170+existing Secret.
171+172+You need to pass the certificate of the issuing CA (or the certificate itself) via `apiService.caBundle` to ensure
173+proper configuration of the `APIservice` resource. Otherwise you cannot set `apiService.insecureSkipTLSVerify` to
174+`false`.
175+176+To use this method, please setup your values file like this:
177+178+```yaml
179+apiService:
180+ insecureSkipTLSVerify: false
181+ caBundle: |
182+ -----BEGIN CERTIFICATE-----
183+ ...
184+ -----END CERTIFICATE-----
185+186+tls:
187+ type: existingSecret
188+ existingSecret:
189+ name: metrics-server-existing
190+```
···1+### Added
2+3+- Add chart options to secure the connection between Metrics Server and the Kubernetes API Server. ([#1288](https://github.com/kubernetes-sigs/metrics-server/pull/1288)) _@mkilchhofer_
4+- Add `unhealthyPodEvictionPolicy` to the Metrics Server PDB as a user enabled feature. ([#1574](https://github.com/kubernetes-sigs/metrics-server/pull/1574)) @peterabarr
5+6+### Changed
7+8+- Update the _Addon Resizer_ OCI image to [`1.8.23`](https://github.com/kubernetes/autoscaler/releases/tag/addon-resizer-1.8.23). ([#1626](https://github.com/kubernetes-sigs/metrics-server/pull/1626)) _@stevehipwell_
9+- Update the _Metrics Server_ OCI image to [`0.8.0`](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.8.0). ([#1683](https://github.com/kubernetes-sigs/metrics-server/pull/1683)) _@stevehipwell_
···1+# Default values for metrics-server.
2+# This is a YAML-formatted file.
3+# Declare variables to be passed into your templates.
4+5+image:
6+ repository: registry.k8s.io/metrics-server/metrics-server
7+ # Overrides the image tag whose default is v{{ .Chart.AppVersion }}
8+ tag: ""
9+ pullPolicy: IfNotPresent
10+11+imagePullSecrets: []
12+# - name: registrySecretName
13+14+nameOverride: ""
15+fullnameOverride: ""
16+17+serviceAccount:
18+ # Specifies whether a service account should be created
19+ create: true
20+ # Annotations to add to the service account
21+ annotations: {}
22+ # The name of the service account to use.
23+ # If not set and create is true, a name is generated using the fullname template
24+ name: ""
25+ # The list of secrets mountable by this service account.
26+ # See https://kubernetes.io/docs/reference/labels-annotations-taints/#enforce-mountable-secrets
27+ secrets: []
28+29+rbac:
30+ # Specifies whether RBAC resources should be created
31+ create: true
32+ # Note: PodSecurityPolicy will not be created when Kubernetes version is 1.25 or later.
33+ pspEnabled: false
34+35+apiService:
36+ # Specifies if the v1beta1.metrics.k8s.io API service should be created.
37+ #
38+ # You typically want this enabled! If you disable API service creation you have to
39+ # manage it outside of this chart for e.g horizontal pod autoscaling to
40+ # work with this release.
41+ create: true
42+ # Annotations to add to the API service
43+ annotations: {}
44+ # Specifies whether to skip TLS verification
45+ insecureSkipTLSVerify: true
46+ # The PEM encoded CA bundle for TLS verification
47+ caBundle: ""
48+49+commonLabels: {}
50+podLabels: {}
51+podAnnotations: {}
52+53+podSecurityContext: {}
54+55+securityContext:
56+ allowPrivilegeEscalation: false
57+ readOnlyRootFilesystem: true
58+ runAsNonRoot: true
59+ runAsUser: 1000
60+ seccompProfile:
61+ type: RuntimeDefault
62+ capabilities:
63+ drop:
64+ - ALL
65+66+priorityClassName: system-cluster-critical
67+68+containerPort: 10250
69+70+hostNetwork:
71+ # Specifies if metrics-server should be started in hostNetwork mode.
72+ #
73+ # You would require this enabled if you use alternate overlay networking for pods and
74+ # API server unable to communicate with metrics-server. As an example, this is required
75+ # if you use Weave network on EKS
76+ enabled: false
77+78+replicas: 1
79+80+revisionHistoryLimit:
81+82+updateStrategy: {}
83+# type: RollingUpdate
84+# rollingUpdate:
85+# maxSurge: 0
86+# maxUnavailable: 1
87+88+podDisruptionBudget:
89+ # https://kubernetes.io/docs/tasks/run-application/configure-pdb/
90+ enabled: false
91+ minAvailable:
92+ maxUnavailable:
93+ unhealthyPodEvictionPolicy:
94+95+defaultArgs:
96+ - --cert-dir=/tmp
97+ - --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
98+ - --kubelet-use-node-status-port
99+ - --metric-resolution=15s
100+101+args: []
102+103+livenessProbe:
104+ httpGet:
105+ path: /livez
106+ port: https
107+ scheme: HTTPS
108+ initialDelaySeconds: 0
109+ periodSeconds: 10
110+ failureThreshold: 3
111+112+readinessProbe:
113+ httpGet:
114+ path: /readyz
115+ port: https
116+ scheme: HTTPS
117+ initialDelaySeconds: 20
118+ periodSeconds: 10
119+ failureThreshold: 3
120+121+service:
122+ type: ClusterIP
123+ port: 443
124+ annotations: {}
125+ labels: {}
126+ # Add these labels to have metrics-server show up in `kubectl cluster-info`
127+ # kubernetes.io/cluster-service: "true"
128+ # kubernetes.io/name: "Metrics-server"
129+130+addonResizer:
131+ enabled: false
132+ image:
133+ repository: registry.k8s.io/autoscaling/addon-resizer
134+ tag: 1.8.23
135+ securityContext:
136+ allowPrivilegeEscalation: false
137+ readOnlyRootFilesystem: true
138+ runAsNonRoot: true
139+ runAsUser: 1000
140+ seccompProfile:
141+ type: RuntimeDefault
142+ capabilities:
143+ drop:
144+ - ALL
145+ resources:
146+ requests:
147+ cpu: 40m
148+ memory: 25Mi
149+ limits:
150+ cpu: 40m
151+ memory: 25Mi
152+ nanny:
153+ cpu: 0m
154+ extraCpu: 1m
155+ memory: 0Mi
156+ extraMemory: 2Mi
157+ minClusterSize: 100
158+ pollPeriod: 300000
159+ threshold: 5
160+161+metrics:
162+ enabled: false
163+164+serviceMonitor:
165+ enabled: false
166+ additionalLabels: {}
167+ interval: 1m
168+ scrapeTimeout: 10s
169+ metricRelabelings: []
170+ relabelings: []
171+172+# See https://github.com/kubernetes-sigs/metrics-server#scaling
173+resources:
174+ requests:
175+ cpu: 100m
176+ memory: 200Mi
177+ # limits:
178+ # cpu:
179+ # memory:
180+181+extraVolumeMounts: []
182+183+extraVolumes: []
184+185+nodeSelector: {}
186+187+tolerations: []
188+189+affinity: {}
190+191+topologySpreadConstraints: []
192+193+dnsConfig: {}
194+195+# Annotations to add to the deployment
196+deploymentAnnotations: {}
197+198+schedulerName: ""
199+200+tmpVolume:
201+ emptyDir: {}
202+203+tls:
204+ # Set the TLS method to use. Supported values:
205+ # - `metrics-server` : Metrics-server will generate a self-signed certificate
206+ # - `helm` : Helm will generate a self-signed certificate
207+ # - `cert-manager` : Use cert-manager.io to create and maintain the certificate
208+ # - `existingSecret` : Reuse an existing secret. No new secret will be created
209+ type: "metrics-server"
210+ # Kubernetes cluster domain. Used to configure Subject Alt Names for the certificate
211+ clusterDomain: cluster.local
212+213+ certManager:
214+ # Automatically add the cert-manager.io/inject-ca-from annotation to the APIService resource.
215+ # See https://cert-manager.io/docs/concepts/ca-injector
216+ addInjectorAnnotations: true
217+ existingIssuer:
218+ # Use an existing cert-manager issuer
219+ enabled: false
220+ # Kind of the existing cert-manager issuer
221+ kind: "Issuer"
222+ # Name of the existing cert-manager issuer
223+ name: "my-issuer"
224+ # Set the requested duration (i.e. lifetime) of the Certificate.
225+ # See https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec
226+ duration: ""
227+ # How long before the currently issued certificate’s expiry cert-manager should renew the certificate.
228+ # See https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec
229+ renewBefore: ""
230+ # Add extra annotations to the Certificate resource
231+ annotations: {}
232+ # Add extra labels to the Certificate resource
233+ labels: {}
234+235+ helm:
236+ # Use helm lookup function to reuse Secret created in previous helm install
237+ lookup: true
238+ # Cert validity duration in days
239+ certDurationDays: 365
240+241+ existingSecret:
242+ # Name of the existing Secret to use for TLS
243+ name: ""
244+ # Use helm lookup function to provision `apiService.caBundle`
245+ lookup: true