Difference between revisions of "Corefile"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
Default Corefile, <ref>https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/</ref>
  
 +
apiVersion: v1
 +
[[kind: ConfigMap]]
 +
metadata:
 +
  name: coredns
 +
  namespace: kube-system
 +
data:
 +
  Corefile: |
 +
    .:53 {
 +
        errors
 +
        health {
 +
            lameduck 5s
 +
        }
 +
        ready
 +
        kubernetes cluster.local in-addr.arpa ip6.arpa {
 +
            pods insecure
 +
            fallthrough in-addr.arpa ip6.arpa
 +
            ttl 30
 +
        }
 +
        [[prometheus]] :[[9153]]
 +
        forward . [[/etc/resolv.conf]]
 +
        [[cache]] 30
 +
        loop
 +
        reload
 +
        loadbalance
 +
    }   
  
Default Corefile, <ref>https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/</pre>
+
== Related ==
<pre>
+
* <code>[[kind: ConfigMap]]</code>
apiVersion: v1
 
kind: ConfigMap
 
metadata:
 
  name: coredns
 
  namespace: kube-system
 
data:
 
  Corefile: |
 
    .:53 {
 
        errors
 
        health {
 
            lameduck 5s
 
        }
 
        ready
 
        kubernetes cluster.local in-addr.arpa ip6.arpa {
 
            pods insecure
 
            fallthrough in-addr.arpa ip6.arpa
 
            ttl 30
 
        }
 
        prometheus :9153
 
        forward . /etc/resolv.conf
 
        cache 30
 
        loop
 
        reload
 
        loadbalance
 
    }   
 
</pre>
 
  
 +
== See also ==
 +
* {{CoreDNS}}
  
{{CoreDNS}}
+
[[Category:DNS]]

Latest revision as of 07:52, 26 February 2024

Default Corefile, [1]

apiVersion: v1
kind: ConfigMap
metadata:
  name: coredns
  namespace: kube-system
data:
  Corefile: |
    .:53 {
        errors
        health {
            lameduck 5s
        }
        ready
        kubernetes cluster.local in-addr.arpa ip6.arpa {
            pods insecure
            fallthrough in-addr.arpa ip6.arpa
            ttl 30
        }
        prometheus :9153
        forward . /etc/resolv.conf
        cache 30
        loop
        reload
        loadbalance
    }    

Related[edit]

See also[edit]

  • https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/
  • Advertising: