From b91414885070a663053333776aa23f683766631a Mon Sep 17 00:00:00 2001 From: Srinivas R Kulkarni Date: Sun, 14 Apr 2019 20:45:59 -0400 Subject: [PATCH] Update deployment.md (#13802) .spec .selector is also a required field in deployment definition --- content/en/docs/concepts/workloads/controllers/deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/workloads/controllers/deployment.md b/content/en/docs/concepts/workloads/controllers/deployment.md index 5d91c8b878..69e7f41ae2 100644 --- a/content/en/docs/concepts/workloads/controllers/deployment.md +++ b/content/en/docs/concepts/workloads/controllers/deployment.md @@ -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`.