diff --git a/charts/metrics-server/README.md b/charts/metrics-server/README.md index 9b33cb734..7de6202b0 100644 --- a/charts/metrics-server/README.md +++ b/charts/metrics-server/README.md @@ -86,3 +86,4 @@ The following table lists the configurable parameters of the _Metrics Server_ ch | `topologySpreadConstraints` | Pod Topology Spread Constraints. | `[]` | | `deploymentAnnotations` | Annotations to add to the deployment. | `{}` | | `schedulerName` | scheduler to set to the deployment. | `""` | +| `dnsConfig` | Set the dns configuration options for the deployment. | `{}` | diff --git a/charts/metrics-server/templates/deployment.yaml b/charts/metrics-server/templates/deployment.yaml index 1d656fccd..80a6a4409 100644 --- a/charts/metrics-server/templates/deployment.yaml +++ b/charts/metrics-server/templates/deployment.yaml @@ -46,6 +46,10 @@ spec: {{- if .Values.hostNetwork.enabled }} hostNetwork: true {{- end }} + {{- with .Values.dnsConfig }} + dnsConfig: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: metrics-server {{- with .Values.securityContext }} diff --git a/charts/metrics-server/values.yaml b/charts/metrics-server/values.yaml index fba10aaf2..8cb1cac6e 100644 --- a/charts/metrics-server/values.yaml +++ b/charts/metrics-server/values.yaml @@ -176,6 +176,8 @@ affinity: {} topologySpreadConstraints: [] +dnsConfig: {} + # Annotations to add to the deployment deploymentAnnotations: {}