diff --git a/system/unbound/templates/service.yaml b/system/unbound/templates/service.yaml index 2b0890bb68..ff2f3990a9 100644 --- a/system/unbound/templates/service.yaml +++ b/system/unbound/templates/service.yaml @@ -15,13 +15,15 @@ spec: app: {{ .Values.unbound.name }} type: dns ports: - - name: dns-tcp +{{- range $.Values.unbound.externalPorts | required ".Values.unbound.externalPorts missing" }} + - name: dns-tcp-{{.}} protocol: TCP - port: 53 + port: {{.}} targetPort: dns-tcp - - name: dns-udp + - name: dns-udp-{{.}} protocol: UDP - port: 53 + port: {{.}} targetPort: dns-udp +{{- end }} externalIPs: {{- required "A valid .Values.unbound.externalIPs required!" .Values.unbound.externalIPs | toYaml | nindent 2 }} diff --git a/system/unbound/values.yaml b/system/unbound/values.yaml index 6d3fb56b0a..bf9c957ac9 100644 --- a/system/unbound/values.yaml +++ b/system/unbound/values.yaml @@ -37,6 +37,9 @@ unbound: tsig: keyname: "tsig-key" + externalPorts: + - 53 + resources: unbound: requests: