summaryrefslogtreecommitdiff
path: root/configs/services/dns.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'configs/services/dns.yaml')
-rw-r--r--configs/services/dns.yaml44
1 files changed, 44 insertions, 0 deletions
diff --git a/configs/services/dns.yaml b/configs/services/dns.yaml
new file mode 100644
index 0000000..db16937
--- /dev/null
+++ b/configs/services/dns.yaml
@@ -0,0 +1,44 @@
+service:
+ name: "dns"
+ version: "1.11.1"
+ description: "CoreDNS for Kubernetes cluster DNS"
+ implementation: "coredns"
+
+config:
+ bind_address: "10.96.0.10"
+ port: 53
+
+ zones:
+ - name: "cluster.local"
+ type: "kubernetes"
+
+ - name: "."
+ type: "forward"
+ forward_to:
+ - "8.8.8.8"
+ - "8.8.4.4"
+
+ plugins:
+ - "errors"
+ - "health"
+ - "ready"
+ - "kubernetes"
+ - "prometheus"
+ - "forward"
+ - "cache"
+ - "loop"
+ - "reload"
+ - "loadbalance"
+
+ cache:
+ ttl: 30
+ max_size: 10000
+
+systemd:
+ unit_file: "coredns.service"
+ requires:
+ - "network-online.target"
+ after:
+ - "network-online.target"
+ restart_policy: "always"
+ restart_sec: 5