Update deployment.md (#14345)

pull/14354/head
Suhwan Cha 2019-05-16 20:53:41 +09:00 committed by Kubernetes Prow Robot
parent 38fcbeb49c
commit b63bbe396d
1 changed files with 1 additions and 1 deletions

View File

@ -997,7 +997,7 @@ allowed, which is the default if not specified.
### Selector
`.spec.selector` is an optional field that specifies a [label selector](/docs/concepts/overview/working-with-objects/labels/)
`.spec.selector` is an required field that specifies a [label selector](/docs/concepts/overview/working-with-objects/labels/)
for the Pods targeted by this deployment.
`.spec.selector` must match `.spec.template.metadata.labels`, or it will be rejected by the API.