diff options
Diffstat (limited to 'plugin/kubernetes')
-rw-r--r-- | plugin/kubernetes/README.md | 5 | ||||
-rw-r--r-- | plugin/kubernetes/health.go | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/plugin/kubernetes/README.md b/plugin/kubernetes/README.md index 890aad9cd..097f0e65e 100644 --- a/plugin/kubernetes/README.md +++ b/plugin/kubernetes/README.md @@ -85,6 +85,11 @@ kubernetes [ZONES...] { what the response will be. However, if you specify this option, the query will instead be passed on down the plugin chain, which can include another plugin to handle the query. +## Health + +This plugin implements dynamic health checking. Currently this is limited to reporting healthy when +the API has synced. + ## Examples Handle all queries in the `cluster.local` zone. Connect to Kubernetes in-cluster. Also handle all 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() } |