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 2021/02/08 03:13:34 UTC
[GitHub] [apisix-ingress-controller] gxthrj opened a new issue #248: discuss: ApisixRoute change struct
gxthrj opened a new issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
priority: 10
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- "$binary_remote_addr"
backend:
serviceName: httpbin
servicePort: 8080
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
- paths:
- "/a"
- "/bb*"
priority: 10
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- "$binary_remote_addr"
route:
serviceName: httpbin
servicePort: 8080
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-782842063
> > > We need a field to specify whether to use `pod IP` or `cluster service`.
>
> >
>
> > We always use Cluster Service, why we need this field?
>
>
>
> I mean is to give users the ability to choose whether to automatically register the pod IP.
>
> The difference is that the node under upstream in APISIX is the pod IP or the cluster server name.
What is automatically register pod ip? What can we get from it?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781348969
> I think it is more readable using `upstream` instead of `route`
>
> Such as
>
> ```yaml
>
> upstream:
>
> serviceName: xxx
>
> servicePort: xxx
>
> ```
Might as well. The route here is a verb.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
- priority: 10
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- subject: "$remote_addr"
op: in
value:
- 127.0.0.1
- 10.0.5.11
backend:
serviceName: httpbin
servicePort: 8080
serviceLevel: endpoint # by default is endpoint, optional value can be "service".
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-783002932
> I mean to give users a choice, use clusterip or POD IP
Got it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] zhangxiaohui123456 commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-783949954
Will the routing rules under Ingress be the same as the standard version of Apisix?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781751499
> I think it might be a good idea to keep the `pathtype`, the structure is more expressive than `*`, and it will be easy to expand
Well, I think anyone who uses Linux is familiar with "*"; Also, I think we don't need to consider the extensibility now, it depends on Apache APISIX's iteration and if so, just use a new version of `ApisixRoute`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
- priority: 10
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- subject: "$remote_addr"
op: in
value:
set:
- 127.0.0.1
- 10.0.5.11
backend:
serviceName: httpbin
servicePort: 8080
resolveGranularity: endpoint # by default is endpoint, optional value can be "service".
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
- priority: 10
name: rule1
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- subject: "$remote_addr"
op: in
array:
- 127.0.0.1
- 10.0.5.11
backend:
serviceName: httpbin
servicePort: 8080
resolveGranularity: endpoint # by default is endpoint, optional value can be "service".
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
- priority: 10
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- subject: "$remote_addr"
op: in
value:
- 127.0.0.1
- 10.0.5.11
backend:
serviceName: httpbin
servicePort: 8080
serviceLevel: endpoint # by default is endpoint, optional value can be "service".
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
priority: 10
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- "$binary_remote_addr"
route:
serviceName: httpbin
servicePort: 8080
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781750542
> > I think it is more readable using `upstream` instead of `route`
> > Such as
> > ```yaml
> > upstream:
> >
> > serviceName: xxx
> >
> > servicePort: xxx
> > ```
>
> Might as well. The route here is a verb.
What about backend? Just like Ingress.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] gxthrj commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781347846
I think it is more readable using `upstream` instead of `route`
Such as
```yaml
upstream:
serviceName: xxx
servicePort: xxx
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] gxthrj commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781344591
Are `priority` and `match` the same level ?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] zhangxiaohui123456 commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-787615183
Is there any progress on Apisix-Route?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
- priority: 10
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- subject: "$remote_addr"
op: in
array:
- 127.0.0.1
- 10.0.5.11
backend:
serviceName: httpbin
servicePort: 8080
resolveGranularity: endpoint # by default is endpoint, optional value can be "service".
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] gxthrj commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781341501
I think it might be a good idea to keep the `pathtype`, the structure is more expressive than `*`, and it will be easy to expand
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers closed issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers closed issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
priority: 10
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- "$binary_remote_addr"
route:
serviceName: httpbin
servicePort: 8080
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
- priority: 10
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- "$binary_remote_addr"
backend:
serviceName: httpbin
servicePort: 8080
serviceLevel: endpoint # by default is endpoint, optional value can be "service".
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] gxthrj commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-782987291
I mean to give users a choice, use clusterip or POD IP
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-787711121
@pioneer-hash See #262 for more details.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781750363
> Are `priority` and `match` the same level ?
Yep.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
- priority: 10
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- subject: "$remote_addr"
op: in
value:
- 127.0.0.1
- 10.0.5.11
backend:
serviceName: httpbin
servicePort: 8080
resolveGranularity: endpoint # by default is endpoint, optional value can be "service".
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781298336
@gxthrj
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-784135435
> Will the routing rules under Ingress be the same as the standard version of Apisix?
Sure~.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] gxthrj commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-782701398
> > We need a field to specify whether to use `pod IP` or `cluster service`.
>
> We always use Cluster Service, why we need this field?
I mean is to give users the ability to choose whether to automatically register the pod IP.
The difference is that the node under upstream in APISIX is the pod IP or the cluster server name.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680
The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as possible, for instance, the flexible route match, native plugins support.
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: httpbin-route
spec:
http:
priority: 10
match:
paths:
- "/a"
- "/bb*"
methods:
- GET
- POST
hosts:
- a.com
- aa.com
remote_addrs:
- 192.168.1.0/24
- 10.0.5.12
nginxVars:
- "$binary_remote_addr"
backend:
serviceName: httpbin
servicePort: 8080
serviceLevel: endpoint # by default is endpoint, optional value can be "service".
plugins:
- name: redirect
enable: true
config:
aaa: bbb
ccc: ddd
```
The `scripts` are used by plugin orchestration, we don't use it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] zhangxiaohui123456 edited a comment on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 edited a comment on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-787615183
Is there any progress on Apisix-Route?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tokers commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-782517914
> We need a field to specify whether to use `pod IP` or `cluster service`.
We always use Cluster Service, why we need this field?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] gxthrj commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-782102288
> > > I think it is more readable using `upstream` instead of `route`
> > > Such as
> > > ```yaml
> > > upstream:
> > >
> > > serviceName: xxx
> > >
> > > servicePort: xxx
> > > ```
> >
> >
> > Might as well. The route here is a verb.
>
> What about backend? Just like Ingress.
Agreee
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] gxthrj commented on issue #248: discuss: ApisixRoute change struct
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #248:
URL: https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-782103862
We need a field to specify whether to use `pod IP` or `cluster service`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org