Fix command in index.md (#7935)
* Fix command in index.md * Fix command in index.md * Update index.md
This commit is contained in:
parent
042e426b01
commit
27037a1919
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue