add coredns update
This commit is contained in:
9
README.md
Normal file
9
README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Configuration Settings
|
||||||
|
|
||||||
|
## Apply DNS Changes
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl apply -f k8s/
|
||||||
|
# force dns reload
|
||||||
|
kubectl delete pod --namespace kube-system --selector k8s-app=kube-dns
|
||||||
|
```
|
||||||
30
k8s/coredns.yaml
Normal file
30
k8s/coredns.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: coredns
|
||||||
|
namespace: kube-system
|
||||||
|
data:
|
||||||
|
Corefile: |
|
||||||
|
.:53 {
|
||||||
|
errors
|
||||||
|
health
|
||||||
|
ready
|
||||||
|
kubernetes cluster.local in-addr.arpa ip6.arpa {
|
||||||
|
pods insecure
|
||||||
|
upstream
|
||||||
|
fallthrough in-addr.arpa ip6.arpa
|
||||||
|
}
|
||||||
|
hosts /etc/coredns/NodeHosts {
|
||||||
|
reload 1s
|
||||||
|
fallthrough
|
||||||
|
}
|
||||||
|
prometheus :9153
|
||||||
|
forward . /etc/resolv.conf
|
||||||
|
cache 30
|
||||||
|
loop
|
||||||
|
reload
|
||||||
|
loadbalance
|
||||||
|
}
|
||||||
|
ducoterra.net:53 {
|
||||||
|
forward . 3.14.3.100
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user