Hi Chao,
Thanks! It works now. I got this,
Defaulted container "apisix" out of: apisix, wait-etcd (init)
{
"headers": {
"Accept": "*/*",
"Host": "local.httpbin.org",
"User-Agent": "curl/7.79.1",
"X-Forwarded-Host": "local.httpbin.org"
}
}
Correction may be made on the quickstart as well,
https://apisix.apache.org/docs/ingress-controller/practices/proxy-the-httpbin-service
regards
Rupinder
On Fri, Oct 29, 2021 at 11:16 AM Chao Zhang <[email protected]> wrote:
> Hi,
>
> It seems that your ApisixRoute definition was wrong, serviceName and
> servicePort should be set as a whole in the backends. You may try the
> following snippet.
>
> httpbin-route.yaml
> apiVersion: apisix.apache.org/v2beta2
> kind: ApisixRoute
> metadata:
> name: httpserver-route
> spec:
> http:
> - name: rule1
> match:
> hosts:
> - local.httpbin.org
> paths:
> - /*
> backends:
> - serviceName: httpbin
> servicePort: 80
>
>
> Chao Zhang
> https://github.com/tokers
>
> On October 29, 2021 at 03:54:05, Rupinder Singh ([email protected])
> wrote:
>
> httpbin-route.yaml apiVersion: apisix.apache.org/v2beta2 kind:
> ApisixRoute metadata: name: httpserver-route spec: http: - name:
> rule1 match: hosts: - local.httpbin.org paths:
> - /* backends: - serviceName: httpbin -
> servicePort: 80
>
>