Fix command in index.md (#7935)

* Fix command in index.md

* Fix command in index.md

* Update index.md
This commit is contained in:
Masa 2021-11-29 10:39:22 +08:00 committed by GitHub
parent 042e426b01
commit 27037a1919
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,9 +113,16 @@ Set up a DNS record pointing to that IP address or FQDN; then create an ingress
```console ```console
kubectl create ingress demo --class=nginx \ 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! 🎉 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 ## Environment-specific instructions