Add selector spec description (#5789)

* Add selector spec description

* Fix selector field explanation
This commit is contained in:
Kyle Bai
2017-10-26 07:11:41 +08:00
committed by Steve Perry
parent 583805b507
commit 62062a450f
@@ -43,6 +43,10 @@ In this example:
* A Deployment named `nginx-deployment` is created, indicated by the `metadata: name` field.
* The Deployment creates three replicated Pods, indicated by the `replicas` field.
* The `selector` field defines how the Deployment finds which Pods to manage.
In this case, we simply select on one label defined in the Pod template (`app: nginx`).
However, more sophisticated selection rules are possible,
as long as the Pod template itself satisfies the rule.
* The Pod template's specification, or `template: spec` field, indicates that
the Pods run one container, `nginx`, which runs the `nginx`
[Docker Hub](https://hub.docker.com/) image at version 1.7.9.