From 1c27f43b7b405c5fc9c74d366854d49d4ef6f11a Mon Sep 17 00:00:00 2001 From: "Madhusudan.C.S" Date: Fri, 18 Mar 2016 16:09:33 -0700 Subject: [PATCH] Now that kubectl run creates a deployment by default, expose here should expose the deployment previously created. --- docs/getting-started-guides/docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started-guides/docker.md b/docs/getting-started-guides/docker.md index 3abbf9cf8c..37ee84c821 100644 --- a/docs/getting-started-guides/docker.md +++ b/docs/getting-started-guides/docker.md @@ -113,7 +113,7 @@ Now run `docker ps` you should see nginx running. You may need to wait a few mi ### Expose it as a service ```shell -kubectl expose rc nginx --port=80 +kubectl expose deployment nginx --port=80 ``` Run the following command to obtain the IP of this service we just created. There are two IPs, the first one is internal (CLUSTER_IP), and the second one is the external load-balanced IP (if a LoadBalancer is configured)