Update deployment.md (#13802)

.spec .selector  is also a required field in deployment definition
This commit is contained in:
Srinivas R Kulkarni 2019-04-14 20:45:59 -04:00 committed by Kubernetes Prow Robot
parent e0d2b86919
commit b914148850
1 changed files with 1 additions and 1 deletions

View File

@ -981,7 +981,7 @@ A Deployment also needs a [`.spec` section](https://git.k8s.io/community/contrib
### Pod Template
The `.spec.template` is the only required field of the `.spec`.
The `.spec.template` and `.spec.selector` are the only required field of the `.spec`.
The `.spec.template` is a [pod template](/docs/concepts/workloads/pods/pod-overview/#pod-templates). It has exactly the same schema as a [Pod](/docs/concepts/workloads/pods/pod/), except it is nested and does not have an
`apiVersion` or `kind`.