Skip to content

Commit

Permalink
docs: patch route with the correct apiVersion (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhuzero authored Jun 14, 2021
1 parent f276216 commit 7e146b6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/en/latest/practices/proxy-the-httpbin-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,21 @@ In order to let Apache APISIX proxies requests to httpbin, we need to create an

```yaml
# httpbin-route.yaml
apiVersion: apisix.apache.org/v1
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpserver-route
spec:
rules:
- host: local.httpbin.org
http:
http:
- name: rule1
match:
hosts:
- local.httpbin.org
paths:
- backend:
serviceName: httpbin
servicePort: 80
path: /*
- /*
backend:
serviceName: httpbin
servicePort: 80
```
The YAML snippet shows a simple `ApisixRoute` configuration, which tells Apache APISIX to route all requests with Host `local.httpbin.org` to the `httpbin` service.
Expand Down

0 comments on commit 7e146b6

Please sign in to comment.