aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar John Belamaric <jbelamaric@google.com> 2019-04-02 14:55:25 -0700
committerGravatar GitHub <noreply@github.com> 2019-04-02 14:55:25 -0700
commit2418a6b2d2b81a95cf06fc7d4c9ea2d45bfe7e98 (patch)
tree5de4a5bfbd4ceab50e9d29f3feb24d39573817d0 /plugin
parent6f5b294d7e5476050e47214f185ead1562a6ae1e (diff)
downloadcoredns-2418a6b2d2b81a95cf06fc7d4c9ea2d45bfe7e98.tar.gz
coredns-2418a6b2d2b81a95cf06fc7d4c9ea2d45bfe7e98.tar.zst
coredns-2418a6b2d2b81a95cf06fc7d4c9ea2d45bfe7e98.zip
plugin/kubernetes: Disable resync by default (#2752)
* Disable resync by default * Document default resync
Diffstat (limited to 'plugin')
-rw-r--r--plugin/kubernetes/README.md3
-rw-r--r--plugin/kubernetes/setup.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/plugin/kubernetes/README.md b/plugin/kubernetes/README.md
index 35161cb82..5fa880824 100644
--- a/plugin/kubernetes/README.md
+++ b/plugin/kubernetes/README.md
@@ -48,7 +48,8 @@ kubernetes [ZONES...] {
}
```
-* `resyncperiod` specifies the Kubernetes data API **DURATION** period.
+* `resyncperiod` specifies the Kubernetes data API **DURATION** period. By
+ default resync is disabled (DURATION is zero).
* `endpoint` specifies the **URL** for a remote k8s API endpoint.
If omitted, it will connect to k8s in-cluster using the cluster service account.
* `tls` **CERT** **KEY** **CACERT** are the TLS cert, key and the CA cert file names for remote k8s connection.
diff --git a/plugin/kubernetes/setup.go b/plugin/kubernetes/setup.go
index 5707b7746..593cd2f77 100644
--- a/plugin/kubernetes/setup.go
+++ b/plugin/kubernetes/setup.go
@@ -321,4 +321,4 @@ func searchFromResolvConf() []string {
return rc.Search
}
-const defaultResyncPeriod = 5 * time.Hour
+const defaultResyncPeriod = 0