mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #5068 from a-robinson/docs
Clarify the documentation on label selectors
This commit is contained in:
commit
4dd8dbef49
@ -36,7 +36,15 @@ dimensions, such as:
|
||||
|
||||
These are just examples; you are free to develop your own conventions.
|
||||
|
||||
Label selectors permit very simple filtering by label keys and values. Currently, label selectors only support these forms:
|
||||
Label selectors permit very simple filtering by label keys and values. The API currently only supports equality label selectors that are ANDed together. For example, if you specify the selector below in a JSON config, you'll only select resources that have both the labels `environment=dev` and `tier=frontend`:
|
||||
```
|
||||
"selector": {
|
||||
"environment": "dev",
|
||||
"tier": "frontend"
|
||||
}
|
||||
```
|
||||
|
||||
We [are actively working](https://github.com/GoogleCloudPlatform/kubernetes/issues/341) to support more types of selectors in the API, such as:
|
||||
```
|
||||
key1
|
||||
key1 = value11
|
||||
|
Loading…
Reference in New Issue
Block a user