diff --git a/charts/metrics-server/README.md b/charts/metrics-server/README.md index 21e10f213..28dd294bd 100644 --- a/charts/metrics-server/README.md +++ b/charts/metrics-server/README.md @@ -47,6 +47,7 @@ The following table lists the configurable parameters of the _Metrics Server_ ch | `containerPort` | port for the _metrics-server_ container. | `10250` | | `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` | | `replicas` | Number of replicas to run. | `1` | +| `revisionHistoryLimit` | Number of revisions to keep. | `nil` | | `updateStrategy` | Customise the default update strategy. | `{}` | | `podDisruptionBudget.enabled` | If `true`, create `PodDisruptionBudget` resource. | `{}` | | `podDisruptionBudget.minAvailable` | Set the `PodDisruptionBudget` minimum available pods. | `nil` | @@ -88,3 +89,4 @@ The following table lists the configurable parameters of the _Metrics Server_ ch | `deploymentAnnotations` | Annotations to add to the deployment. | `{}` | | `schedulerName` | scheduler to set to the deployment. | `""` | | `dnsConfig` | Set the dns configuration options for the deployment. | `{}` | +| `tmpVolume` | Volume to be mounted in Pods for temporary files. | `{"emptyDir":{}}` | diff --git a/charts/metrics-server/templates/deployment.yaml b/charts/metrics-server/templates/deployment.yaml index 2a2c3c8a2..48cda7feb 100644 --- a/charts/metrics-server/templates/deployment.yaml +++ b/charts/metrics-server/templates/deployment.yaml @@ -11,6 +11,9 @@ metadata: {{- end }} spec: replicas: {{ .Values.replicas }} + {{- if or (kindIs "float64" .Values.revisionHistoryLimit) (kindIs "int64" .Values.revisionHistoryLimit) }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit | int64 }} + {{- end }} {{- with .Values.updateStrategy }} strategy: {{- toYaml . | nindent 4 }} @@ -127,7 +130,7 @@ spec: {{- end }} volumes: - name: tmp - emptyDir: {} + {{- toYaml .Values.tmpVolume | nindent 10 }} {{- if .Values.addonResizer.enabled }} - name: nanny-config-volume configMap: diff --git a/charts/metrics-server/values.yaml b/charts/metrics-server/values.yaml index 729867e58..ae3712f5a 100644 --- a/charts/metrics-server/values.yaml +++ b/charts/metrics-server/values.yaml @@ -76,6 +76,8 @@ hostNetwork: replicas: 1 +revisionHistoryLimit: + updateStrategy: {} # type: RollingUpdate # rollingUpdate: @@ -192,3 +194,6 @@ dnsConfig: {} deploymentAnnotations: {} schedulerName: "" + +tmpVolume: + emptyDir: {}