mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
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
This commit is contained in:
@@ -38,5 +38,7 @@ func (h *health) poll() {
|
||||
}
|
||||
|
||||
// Plugins that implements the Healther interface.
|
||||
// TODO(miek): none yet.
|
||||
var healthers = map[string]bool{}
|
||||
var healthers = map[string]bool{
|
||||
"erratic": true,
|
||||
"kubernetes": true,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user