このページは、まだ日本語ではご利用いただけません。翻訳中です。
Labels
Labels are key:value
pairs. They are case-sensitive attributes associated with entities.
Labels allow an organization to specify metadata on an entity.
For example, you might use the label location:us-west
, where location
is the key and the us-west
is the value.
A maximum of 5 user-defined labels are allowed on each resource.
Key requirements:
- Keys must be 63 characters or less, beginning and ending with an alphanumeric character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumeric characters in between. - Keys must not start with
kong
,konnect
,insomnia
,mesh
,kic
,kuma
, or_
. These strings are reserved for Kong. - Keys are case-sensitive.
Value requirements:
- Values must be 63 characters or less, beginning and ending with an alphanumeric character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumeric characters in between. - Values must not be empty.
- Values are not case-sensitive.
Setting labels
You can use labels separately on the control plane and data plane nodes.
- On the control plane, you can set a label for
control plane
, and for individual API products. - On data plane nodes, set labels through
kong.conf
or via environment variables using thecluster_dp_labels
property. These labels are exposed through the/nodes
endpoint of the Konnect API.