Add selector spec description (#5789)
* Add selector spec description * Fix selector field explanation
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user