Merge pull request #26991 from dec5e/patch-1

Update the note ragarding matchLabels vs matchExpressions in the Deployment document
This commit is contained in:
Kubernetes Prow Robot
2021-03-15 12:14:34 -07:00
committed by GitHub
@@ -54,7 +54,7 @@ In this example:
{{< note >}}
The `.spec.selector.matchLabels` field is a map of {key,value} pairs.
A single {key,value} in the `matchLabels` map is equivalent to an element of `matchExpressions`,
whose key field is "key" the operator is "In", and the values array contains only "value".
whose `key` field is "key", the `operator` is "In", and the `values` array contains only "value".
All of the requirements, from both `matchLabels` and `matchExpressions`, must be satisfied in order to match.
{{< /note >}}