apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "fullname" . }}
  labels:
    chart: {{ .Chart.Name }}-{{ .Chart.Version }}
    app: {{ template "fullname" . }}
    heritage: {{ .Release.Service }}
    release: {{ .Release.Name  }}
data:
  unbound.conf: |-
    server:
        num-threads: {{ .Values.numThreads }}
        directory: "/etc/unbound"
        interface: {{ .Values.bindTo }}
        access-control: {{ .Values.clusterIpv4Cidr }} allow
        access-control: 127.0.0.1/32 allow
        so-reuseport: yes
        do-daemonize: no
        logfile: ""
        use-syslog: no
        auto-trust-anchor-file: "/var/lib/unbound/root.key"
        verbosity: {{ .Values.verbosity }}

    {{- range .Values.forwardZones }}

    forward-zone:
        name: {{ .name }}
        forward-ssl-upstream: {{ .forwardSsl | default "no" }}
        {{- range .forwardHosts }}
        forward-host {{ . }}
        {{- end }}
        {{- range .forwardIps }}
        forward-addr {{ . }}
        {{- end }}
    {{- end }}

apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "fullname" . }}
  labels:
    chart: {{ .Chart.Name }}-{{ .Chart.Version }}
    app: {{ template "fullname" . }}
    heritage: {{ .Release.Service }}
    release: {{ .Release.Name  }}
data:
  unbound.conf: |-
    server:
        num-threads: {{ .Values.numThreads }}
        directory: "/etc/unbound"
        interface: {{ .Values.bindTo }}
        access-control: {{ .Values.clusterIpv4Cidr }} allow
        access-control: 127.0.0.1/32 allow
        so-reuseport: yes
        do-daemonize: no
        logfile: ""
        use-syslog: no
        auto-trust-anchor-file: "/var/lib/unbound/root.key"
        verbosity: {{ .Values.verbosity }}

        # record used for the liveness/readiness probes
        local-data: "health.check.unbound A 10.10.10.10"
        local-data-ptr: "10.10.10.10 health.check.unbound"

    {{- range .Values.forwardZones }}

    forward-zone:
        name: {{ .name }}
        {{- range .forwardHosts }}
        forward-host: {{ . }}
        {{- end }}
        {{- range .forwardIps }}
        forward-addr: {{ . }}
        {{- end }}
    {{- end }}

Add a local data rec for probes; remove forward-ssl-upstream; insert missed colon.
Add a local data rec for probes; remove forward-ssl-upstream; insert missed colon.
