Update labels.md (#8102)

Update the example to show that labels are part of the metadata of an object.
pull/8107/merge
Fabian Deutsch 2018-04-16 18:31:58 +02:00 committed by k8s-ci-robot
parent a0132a2220
commit da86ab8831
1 changed files with 5 additions and 3 deletions

View File

@ -10,9 +10,11 @@ Labels can be used to organize and to select subsets of objects. Labels can be
Each object can have a set of key/value labels defined. Each Key must be unique for a given object.
```json
"labels": {
"key1" : "value1",
"key2" : "value2"
"metadata": {
"labels": {
"key1" : "value1",
"key2" : "value2"
}
}
```