From a3dd8cdf8de1a9aacc36fe8cf0f268e69bd8a45d Mon Sep 17 00:00:00 2001 From: Matt Greenfield Date: Fri, 22 Mar 2019 08:32:40 -0600 Subject: Add `namespace_labels` configuration for kubernetes plugin (#2707) --- plugin/kubernetes/README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin/kubernetes/README.md') 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 -- cgit v1.2.3