Fix formatting for ingress.html (#674)

This commit is contained in:
Martin Taillefer 2017-10-19 09:55:15 -07:00 committed by GitHub
parent 7617c34281
commit 546b81e568
1 changed files with 9 additions and 12 deletions

View File

@ -65,12 +65,12 @@ rules.
EOF EOF
``` ```
`/.*` is a special Istio notation that is used to indicate a prefix `/.*` is a special Istio notation that is used to indicate a prefix
match, specifically a configuration of the form (`prefix: /`). This match, specifically a configuration of the form (`prefix: /`). This
configuration above will allow access to all URIs in the httpbin configuration above will allow access to all URIs in the httpbin
service. However we wish to enable access only to specific URIs under the service. However we wish to enable access only to specific URIs under the
httpbin service. Let us define a default _deny all_ route rule that httpbin service. Let us define a default _deny all_ route rule that
provides this behavior: provides this behavior:
```bash ```bash
cat <<EOF | istioctl create -f - cat <<EOF | istioctl create -f -
@ -95,11 +95,9 @@ rules.
percent: 100 percent: 100
httpStatus: 403 #Forbidden for all URLs httpStatus: 403 #Forbidden for all URLs
EOF EOF
``` ```
2. Now, allow requests to `/status/` prefix by defining a route rule of
higher priority.
Now, allow requests to `/status/` prefix by defining a route rule of
higher priority.
```bash ```bash
cat <<EOF | istioctl create -f - cat <<EOF | istioctl create -f -
@ -125,7 +123,6 @@ rules.
- weight: 100 - weight: 100
EOF EOF
``` ```
You can use other features of the route rules such as redirects, You can use other features of the route rules such as redirects,
rewrites, regular expression based match in HTTP headers, websocket rewrites, regular expression based match in HTTP headers, websocket
upgrades, timeouts, retries, and so on. Please refer to the upgrades, timeouts, retries, and so on. Please refer to the