aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorGravatar Michael Richmond <mrichmon@users.noreply.github.com> 2016-08-08 14:30:04 -0700
committerGravatar GitHub <noreply@github.com> 2016-08-08 14:30:04 -0700
commitc079de65b520bd7690c7ac057a38b404947f3909 (patch)
treef2c19117a64ca0e40ab187ae068d5819814492f5 /conf
parent51eaefc0377597691fec1829680b3c9612068d88 (diff)
downloadcoredns-c079de65b520bd7690c7ac057a38b404947f3909.tar.gz
coredns-c079de65b520bd7690c7ac057a38b404947f3909.tar.zst
coredns-c079de65b520bd7690c7ac057a38b404947f3909.zip
Adding `resyncperiod` to Corefile (#205)
* Removing old unused inline k8s API code and tests. * Adding parsing implementation for `resyncperiod` keyword from Corefile. * Adding tests for parsing `resyncperiod` keyword from Corefile. 8 Updating README.md and conf/k8sCorefile.
Diffstat (limited to 'conf')
-rw-r--r--conf/k8sCorefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/conf/k8sCorefile b/conf/k8sCorefile
index fc446e350..ca05461b0 100644
--- a/conf/k8sCorefile
+++ b/conf/k8sCorefile
@@ -2,6 +2,9 @@
.:53 {
# use kubernetes middleware for domain "coredns.local"
kubernetes coredns.local {
+ # Kubernetes data API resync period
+ # Example values: 60s, 5m, 1h
+ resyncperiod 5m
# Use url for k8s API endpoint
endpoint http://localhost:8080
# Assemble k8s record names with the template
@@ -11,7 +14,5 @@
}
# Perform DNS response caching for the coredns.local zone
# Cache timeout is provided by the integer in seconds
- # This works for the kubernetes middleware.)
- #cache 20 coredns.local
- #cache 160 coredns.local
+ #cache 180 coredns.local
}