diff --git a/charts/aws-ebs-csi-driver/templates/controller.yaml b/charts/aws-ebs-csi-driver/templates/controller.yaml index f9eca67ff5..6407e9c44b 100644 --- a/charts/aws-ebs-csi-driver/templates/controller.yaml +++ b/charts/aws-ebs-csi-driver/templates/controller.yaml @@ -68,6 +68,14 @@ spec: initContainers: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.controller.dnsConfig }} + dnsConfig: + options: + {{- range .Values.controller.dnsConfig.options }} + - name: {{ .name }} + value: "{{ .value }}" + {{- end }} + {{- end }} containers: - name: ebs-plugin image: {{ printf "%s%s:%s" (default "" .Values.image.containerRegistry) .Values.image.repository (default (printf "v%s" .Chart.AppVersion) (.Values.image.tag | toString)) }} diff --git a/charts/aws-ebs-csi-driver/values.yaml b/charts/aws-ebs-csi-driver/values.yaml index ca9cea070a..9122701ebb 100644 --- a/charts/aws-ebs-csi-driver/values.yaml +++ b/charts/aws-ebs-csi-driver/values.yaml @@ -324,6 +324,10 @@ controller: otelTracing: {} # otelServiceName: ebs-csi-controller # otelExporterEndpoint: "http://localhost:4317" + dnsConfig: + options: + - name : ndots + value : "5" node: env: []