plugin/kubernetes: Disable resync by default (#2752)

* Disable resync by default

* Document default resync
This commit is contained in:
John Belamaric 2019-04-02 14:55:25 -07:00 committed by GitHub
parent 6f5b294d7e
commit 2418a6b2d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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. * `endpoint` specifies the **URL** for a remote k8s API endpoint.
If omitted, it will connect to k8s in-cluster using the cluster service account. 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. * `tls` **CERT** **KEY** **CACERT** are the TLS cert, key and the CA cert file names for remote k8s connection.

View file

@ -321,4 +321,4 @@ func searchFromResolvConf() []string {
return rc.Search return rc.Search
} }
const defaultResyncPeriod = 5 * time.Hour const defaultResyncPeriod = 0