Configure data plane proxy membership

Uses: Kong Mesh

Data plane proxy membership constraints allow you to define a set of rules that are executed when a data plane proxy is joining a mesh. These help determine if a data plane proxy can or can’t join the mesh.

Constraints contains two lists:

  • Requirements: A data plane proxy has to fulfill at least one requirement to join a mesh.
  • Restrictions: If a data plane proxy matches any of the restrictions, it can’t join the mesh.

Membership rules are enforced only on new data plane proxies. If existing data plane proxies violate rules, you must remove them manually from the mesh.

Data plane proxy constraints are defined using the constrains.dataplaneProxy.requirements and constrains.dataplaneProxy.restrictions parameters.

Membership constraint examples

The following examples show you different ways you can configure data plane proxy membership constraints.

Restrict data plane membership based on namespaces

In this example, we allow data plane proxies to join the mesh if they are in either the ns-1 namespace or the ns-2 namespace:

Enforce consistency of tags

In this example, every data plane proxy must have non-empty team and cloud tags and can’t have a legacy tag.

Multi-zone mesh segmentation

In this example, only data plane proxies from the east zone can join the default mesh, and only data plane proxies from the west zone can join the demo mesh.

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!