This is an automated email from the ASF dual-hosted git repository.

kvn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new 7e146b6  docs: patch route with the correct apiVersion (#546)
7e146b6 is described below

commit 7e146b66f26c800eeb8cb72ed0c98d4e8107b45c
Author: Fang <[email protected]>
AuthorDate: Mon Jun 14 15:48:14 2021 +0800

    docs: patch route with the correct apiVersion (#546)
---
 docs/en/latest/practices/proxy-the-httpbin-service.md | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/docs/en/latest/practices/proxy-the-httpbin-service.md 
b/docs/en/latest/practices/proxy-the-httpbin-service.md
index 87ce38f..6412748 100644
--- a/docs/en/latest/practices/proxy-the-httpbin-service.md
+++ b/docs/en/latest/practices/proxy-the-httpbin-service.md
@@ -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.

Reply via email to