Skip to content

Commit

Permalink
add matchLabels description (kubernetes#6020)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shual Liu authored and colemickens committed Oct 26, 2017
1 parent 9204a56 commit aedc33c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/concepts/workloads/controllers/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ In this example:
[Docker Hub](https://hub.docker.com/) image at version 1.7.9.
* The Deployment opens port 80 for use by the Pods.

Note: `matchLabels` 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". The requirements are ANDed.

The `template` field contains the following instructions:

* The Pods are labeled `app: nginx`
Expand Down

0 comments on commit aedc33c

Please sign in to comment.