diff options
author | 2017-11-13 09:52:40 +0000 | |
---|---|---|
committer | 2017-11-13 09:52:40 +0000 | |
commit | 52b49f483885def1a5b8dc2dfe8d35ffcc9afe83 (patch) | |
tree | e2ecbba7791c86def85f29c24941bc64b7fa1ce5 /plugin/kubernetes/health.go | |
parent | 46a187df8f055b255f205075e3a69ebeb18d209d (diff) | |
download | coredns-52b49f483885def1a5b8dc2dfe8d35ffcc9afe83.tar.gz coredns-52b49f483885def1a5b8dc2dfe8d35ffcc9afe83.tar.zst coredns-52b49f483885def1a5b8dc2dfe8d35ffcc9afe83.zip |
plugin/health: implement dyn health checks (#1214)
Implement health.Healther in erratic and kubernetes plugin. The
kubernetes' healtcheck is only performed on startup - i.e. turn
healthy after the initial loading.
Erratic follow the drop count: every query%drop turns the healthcheck
unhealthy.
Fixes: #985
Diffstat (limited to 'plugin/kubernetes/health.go')
-rw-r--r-- | plugin/kubernetes/health.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/kubernetes/health.go b/plugin/kubernetes/health.go new file mode 100644 index 000000000..243749210 --- /dev/null +++ b/plugin/kubernetes/health.go @@ -0,0 +1,4 @@ +package kubernetes + +// Health implements the health.Healther interface. +func (k *Kubernetes) Health() bool { return k.APIConn.HasSynced() } |