diff --git a/charts/metrics-server/Chart.yaml b/charts/metrics-server/Chart.yaml index 78912471d..fcd7476da 100644 --- a/charts/metrics-server/Chart.yaml +++ b/charts/metrics-server/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: metrics-server description: Metrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines. type: application -version: 3.5.0 -appVersion: 0.5.0 +version: 3.6.0 +appVersion: 0.5.1 keywords: - kubernetes - metrics-server @@ -22,4 +22,6 @@ maintainers: annotations: artifacthub.io/changes: | - kind: added - description: "Initial release from official repo." + description: "New defaultArgs value to enable overriding the default arguments." + - kind: changed + description: "Update Metrics Server image to v0.5.1." diff --git a/charts/metrics-server/README.md b/charts/metrics-server/README.md index 03cfda2c5..4003c71ea 100644 --- a/charts/metrics-server/README.md +++ b/charts/metrics-server/README.md @@ -48,6 +48,7 @@ The following table lists the configurable parameters of the _Metrics Server_ ch | `podDisruptionBudget.enabled` | If `true`, create `PodDisruptionBudget` resource. | `{}` | | `podDisruptionBudget.minAvailable` | Set the `PodDisruptionBugdet` minimum available pods. | `nil` | | `podDisruptionBudget.maxUnavailable` | Set the `PodDisruptionBugdet` maximum unavailable pods. | `nil` | +| `defaultArgs` | Default arguments to pass to the _metrics-server_ command. | See _values.yaml_ | | `args` | Additional arguments to pass to the _metrics-server_ command. | `[]` | | `livenessProbe` | Liveness probe. | See _values.yaml_ | | `readinessProbe` | Readiness probe. | See _values.yaml_ | diff --git a/charts/metrics-server/templates/deployment.yaml b/charts/metrics-server/templates/deployment.yaml index 7db2fec79..c8ca76b44 100644 --- a/charts/metrics-server/templates/deployment.yaml +++ b/charts/metrics-server/templates/deployment.yaml @@ -49,10 +49,10 @@ spec: image: {{ include "metrics-server.image" . }} imagePullPolicy: {{ .Values.image.pullPolicy }} args: - - --cert-dir=/tmp - {{ printf "--secure-port=%d" (int .Values.containerPort) }} - - --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname - - --kubelet-use-node-status-port + {{- range .Values.defaultArgs }} + - {{ . }} + {{- end }} {{- range .Values.args }} - {{ . }} {{- end }} diff --git a/charts/metrics-server/values.yaml b/charts/metrics-server/values.yaml index c028f8244..0504399d8 100644 --- a/charts/metrics-server/values.yaml +++ b/charts/metrics-server/values.yaml @@ -73,9 +73,14 @@ podDisruptionBudget: minAvailable: maxUnavailable: -args: +defaultArgs: + - --cert-dir=/tmp + - --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname + - --kubelet-use-node-status-port - --metric-resolution=15s +args: [] + livenessProbe: httpGet: path: /livez