Updated on 2025-06-13 GMT+08:00

Selector

Label selectors are used to associate labels with workloads and then later use those labels to identify the workloads.

They are used to express the query conditions or selection criteria of a label and select a workload.

Value Range

  • Equality-based: The operators include =, ==, and !=. The first two specify that two values are equal, and the last one specifies that two values are not equal.
  • Set-based:
    • KEY in (VALUE1, VALUE2, ...)
    • KEY not in (VALUE1, VALUE2, ...)
    • KEY: all resources that have the label with the specified key
    • !KEY: all resources that do not have the label with the specified key

Default Value

None

Modifiable

Yes

Scope

CCE standard and CCE Turbo clusters

Suggestions

Configure the label selector based on your services and use labels to identify the workloads.