Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exclude only cluster.local #7620

@mgfnv9

Description

@mgfnv9

I wanted to enable the logging of all DNS requests that coredns handles but exclude only CLUSTER.LOCAL domains from logging? How can I do with this configmap of Kubernetes?

apiVersion: v1
data:
  Corefile: |
    .:53 {
        errors
        log
        health {
            lameduck 5s
        }
        ready
        kubernetes cluster.local in-addr.arpa ip6.arpa {
          pods insecure
          fallthrough in-addr.arpa ip6.arpa
        }
        prometheus :9153
        forward . /etc/resolv.conf {
          prefer_udp
        }
        cache 30

        loop
        reload
        loadbalance
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions