From 11161b63515dc20f310044f347e171684f9ce56e Mon Sep 17 00:00:00 2001 From: Ryan McGinnis Date: Thu, 7 Sep 2017 17:09:24 -0700 Subject: [PATCH 1/2] Edits deployment.md - Fixes an inaccuracy: `template: metadata: labels:` labels the Pod template rather than the containers - Elaborates some more on the explanation of the manifest --- docs/concepts/workloads/controllers/deployment.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/concepts/workloads/controllers/deployment.md b/docs/concepts/workloads/controllers/deployment.md index 0312a6390f4..70dfe589fea 100644 --- a/docs/concepts/workloads/controllers/deployment.md +++ b/docs/concepts/workloads/controllers/deployment.md @@ -41,15 +41,18 @@ The following is an example of a Deployment. It creates a ReplicaSet to bring up In this example: -* A Deployment named `nginx` is created. -* The `nginx` Deployment creates three replicated Pods. -* The Pods are created from the `template` field. +* A Deployment named `nginx` is created, indicated by the `metadata: name` field. +* The Deployment creates three replicated Pods, indicated by the `replicas` field. +* 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. +* The Deployment opens port 80 for use by the Pods. The `template` field contains the following instructions: -* Create one container in each Pod. -* Label the container `app: nginx`. -* Run the [Docker Hub](https://hub.docker.com) image `nginx` at version `1.7.9`. +* The Pod template is labelled `app: nginx` +* Create one container and name it `nginx`. +* Run the `nginx` image at version `1.7.9`. * Open port `80` so that the container can send and accept traffic. To create this Deployment, run the following command: From 0347e50b82b0628b100fd5ce90a4a08fbe8eb29d Mon Sep 17 00:00:00 2001 From: Ryan McGinnis Date: Fri, 8 Sep 2017 07:32:40 -0700 Subject: [PATCH 2/2] Update deployment.md --- docs/concepts/workloads/controllers/deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/workloads/controllers/deployment.md b/docs/concepts/workloads/controllers/deployment.md index 70dfe589fea..3b011d95858 100644 --- a/docs/concepts/workloads/controllers/deployment.md +++ b/docs/concepts/workloads/controllers/deployment.md @@ -50,7 +50,7 @@ In this example: The `template` field contains the following instructions: -* The Pod template is labelled `app: nginx` +* The Pods are labeled `app: nginx` * Create one container and name it `nginx`. * Run the `nginx` image at version `1.7.9`. * Open port `80` so that the container can send and accept traffic.