From 27037a1919e515dea4652fc7ae80625861c6eb3f Mon Sep 17 00:00:00 2001 From: Masa Date: Mon, 29 Nov 2021 10:39:22 +0800 Subject: [PATCH] Fix command in index.md (#7935) * Fix command in index.md * Fix command in index.md * Update index.md --- docs/deploy/index.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/deploy/index.md b/docs/deploy/index.md index 832030ffd..7f55547f3 100644 --- a/docs/deploy/index.md +++ b/docs/deploy/index.md @@ -113,9 +113,16 @@ Set up a DNS record pointing to that IP address or FQDN; then create an ingress ```console kubectl create ingress demo --class=nginx \ - --rule=www.demo.io/*=demo:80 + --rule="www.demo.io/*=demo:80" ``` +Alternatively, the above command can be rewritten as follows for the ```--rule``` command and below. +```console +kubectl create ingress demo --class=nginx \ + --rule www.demo.io/=demo:80 +``` + + You should then be able to see the "It works!" page when you connect to http://www.demo.io/. Congratulations, you are serving a public web site hosted on a Kubernetes cluster! 🎉 ## Environment-specific instructions