forked from OpenSourceLAN/kubernetes-lanparty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoredns.yaml
35 lines (33 loc) · 893 Bytes
/
coredns.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# WARNING:
# Your coredns config may have changed.
# You should take a backup of your coredns configmap before applying this
# Or, just add the `rewrite stop {}` block to your own coredns configmap.
# kubectl -n kube-system get configmap coredns > backup.yaml
#
# The below works with kube 1.16
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns
namespace: kube-system
data:
Corefile: |
.:53 {
errors
health
ready
rewrite stop {
name regex (.*)\.server\.lan {1}.default.svc.cluster.local
answer name (.*)\.default\.svc\.cluster\.local {1}.server.lan
}
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
}
prometheus :9153
forward . /etc/resolv.conf
cache 30
loop
reload
loadbalance
}