From 05c0a65373b321a9aad59e178ae27cd67849ff75 Mon Sep 17 00:00:00 2001 From: Shual Liu Date: Tue, 24 Oct 2017 01:15:03 +0800 Subject: [PATCH] add matchLabels description (#6020) --- docs/concepts/workloads/controllers/deployment.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/concepts/workloads/controllers/deployment.md b/docs/concepts/workloads/controllers/deployment.md index 82bb729b28..1b6d3afa73 100644 --- a/docs/concepts/workloads/controllers/deployment.md +++ b/docs/concepts/workloads/controllers/deployment.md @@ -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`