You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/12 18:23:26 UTC
[GitHub] [apisix-ingress-controller] MirtoBusico edited a comment on issue #853: question: How to use Service IP as upstream instead of Pod IP
MirtoBusico edited a comment on issue #853:
URL: https://github.com/apache/apisix-ingress-controller/issues/853#issuecomment-1037349675
Recreated the route using v2beta3
```
apiVersion: apisix.apache.org/v2beta3
kind: ApisixRoute
metadata:
name: productpage
spec:
http:
- name: rule1
match:
hosts:
- www2.m01.net
paths:
- /*
backends:
- serviceName: productpage
servicePort: 9080
resolveGranularity: service
```
Installed with
```
sysop@m01serv:~/software/apisisx$ kubectl -n bookinfo apply -f productpage-ar.yaml
apisixroute.apisix.apache.org/productpage created
sysop@m01serv:~/software/apisisx$ date
sab 12 feb 2022, 18:43:37, CET
sysop@m01serv:~/software/apisisx$
```
The warning in the log still complains the **v2beta1** version
```
2022-02-12T17:42:36.559Z | [GIN] 2022/02/13 - 01:42:36 | 200 | 36.86µs | 127.0.0.6 | GET "/healthz"
2022-02-12T17:42:41.352Z | [GIN] 2022/02/13 - 01:42:41 | 200 | 41.27µs | 127.0.0.6 | GET "/healthz"
2022-02-12T17:42:46.558Z | [GIN] 2022/02/13 - 01:42:46 | 200 | 33.53µs | 127.0.0.6 | GET "/healthz"
2022-02-12T17:42:47.785Z | W0213 01:42:47.785053 1 warnings.go:70] apisix.apache.org/v2beta1 ApisixRoute is deprecated; use apisix.apache.org/v2beta3 ApisixRoute
2022-02-12T17:42:51.352Z | [GIN] 2022/02/13 - 01:42:51 | 200 | 29.54µs | 127.0.0.6 | GET "/healthz"
2022-02-12T17:42:56.559Z | [GIN] 2022/02/13 - 01:42:56 | 200 | 34.069µs | 127.0.0.6 | GET "/healthz"ù
...
2022-02-12T17:48:36.559Z | [GIN] 2022/02/13 - 01:48:36 | 200 | 38.13µs | 127.0.0.6 | GET "/healthz"
2022-02-12T17:48:41.118Z | W0213 01:48:41.118713 1 warnings.go:70] apisix.apache.org/v2beta1 ApisixRoute is deprecated; use apisix.apache.org/v2beta3 ApisixRoute
2022-02-12T17:48:41.352Z | [GIN] 2022/02/13 - 01:48:41 | 200 | 24.85µs | 127.0.0.6 | GET "/healthz"
```
The route correctly point to the Service address
<img width="1709" alt="v2beta3-route-defined" src="https://user-images.githubusercontent.com/11090934/153722325-229bdfbc-a572-4932-acc8-8f16d3b95ad9.png">
Now I'll try some cluster restarts to see if the address changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org