aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/README.md
diff options
context:
space:
mode:
authorGravatar Matt Greenfield <matt.greenfield@datadoghq.com> 2019-03-22 08:32:40 -0600
committerGravatar Miek Gieben <miek@miek.nl> 2019-03-22 14:32:40 +0000
commita3dd8cdf8de1a9aacc36fe8cf0f268e69bd8a45d (patch)
tree4d0ca8491e0340e22aa8b3631040c92fbd071cc5 /plugin/kubernetes/README.md
parent43c3e0ab68fc103967bfb9bec0363d42a5964dac (diff)
downloadcoredns-a3dd8cdf8de1a9aacc36fe8cf0f268e69bd8a45d.tar.gz
coredns-a3dd8cdf8de1a9aacc36fe8cf0f268e69bd8a45d.tar.zst
coredns-a3dd8cdf8de1a9aacc36fe8cf0f268e69bd8a45d.zip
Add `namespace_labels` configuration for kubernetes plugin (#2707)
Diffstat (limited to 'plugin/kubernetes/README.md')
-rw-r--r--plugin/kubernetes/README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/kubernetes/README.md b/plugin/kubernetes/README.md
index 2c7f9861e..35161cb82 100644
--- a/plugin/kubernetes/README.md
+++ b/plugin/kubernetes/README.md
@@ -56,6 +56,11 @@ kubernetes [ZONES...] {
* `kubeconfig` **KUBECONFIG** **CONTEXT** authenticates the connection to a remote k8s cluster using a kubeconfig file. It supports TLS, username and password, or token-based authentication. This option is ignored if connecting in-cluster (i.e., the endpoint is not specified).
* `namespaces` **NAMESPACE [NAMESPACE...]** only exposes the k8s namespaces listed.
If this option is omitted all namespaces are exposed
+* `namespace_labels` **EXPRESSION** only expose the records for Kubernetes namespaces that match this label selector.
+ The label selector syntax is described in the
+ [Kubernetes User Guide - Labels](http://kubernetes.io/docs/user-guide/labels/). An example that
+ only exposes namespaces labeled as "istio-injection=enabled", would use:
+ `labels istio-injection=enabled`.
* `labels` **EXPRESSION** only exposes the records for Kubernetes objects that match this label selector.
The label selector syntax is described in the
[Kubernetes User Guide - Labels](https://kubernetes.io/docs/user-guide/labels/). An example that