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/06/07 03:44:41 UTC
[GitHub] [apisix] foxchenlei opened a new issue, #7202: feat: apisix discovery for kubernetes support multi service_name
foxchenlei opened a new issue, #7202:
URL: https://github.com/apache/apisix/issues/7202
### Description
Description
apisix:2.13.1
apisix discovery for kubernetes support multi service_names
```
curl http://127.0.0.1:80/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f8sdfcx7ad84b625c8f1sdfagw32' -X PUT -i -d '
{
"uri": "/*", # location path
"name": "test-test-app-for-kubernetes", #Name a free reason
"priority": 100,
"host": "test.xxxx.cn", #Fill in according to your own domain name
"methods": ["PUT", "GET", "POST", "DELETE", "PATCH", "HEAD", "OPTIONS","CONNECT", "TRACE"],
"upstream": {
"timeout": {
"connect": 6,
"send": 6,
"read": 6
},
"service_name": "test/test-app:tcp8080;default/app:http", #Configuration format: namespace/deploy_name:port_name
"type": "roundrobin",
"discovery_type": "kubernetes" #type use kubernetes
}
}'
```
Environment
APISIX version (run apisix version): 2.13.1
Operating system (run uname -a): docker
OpenResty / Nginx version (run openresty -V or nginx -V): 19.0.1
etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): 3.4.15
APISIX Dashboard version, if relevant: 2.13
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] jagerzhang commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
jagerzhang commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1193987481
> 新项目会这么做,老项目无人维护,用注册中心还要修改代码。其实 别的ingress都支持多个svc,例如traefik。而且线上已经这么跑了。这边了解apisix,想平滑迁移,才这么提问
明白,其实老项目简单挂一个sidecar也可以快速实现,主程序不用改代码。我们这边是这么玩的哈..
--
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
[GitHub] [apisix] foxchenlei commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
foxchenlei commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1153405573
1、My kubernetes network plugin is not stable, So i have to use host network of pods. There are many service names , they provide same application with different ports.
2、To avoid http status like 504,502 ..., I can add/delete svc on apisix when pods are rolling update.
--
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
[GitHub] [apisix] jagerzhang commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
jagerzhang commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1157432884
你这个场景,还不如应用将主机IP和端口注册到eureka这种注册中心,然后对接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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] foxchenlei commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
foxchenlei commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1204684420
感谢回复,我了解下sidecar看看
--
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
[GitHub] [apisix] zhixiongdu027 commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
zhixiongdu027 commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1155925618
I don't think this is a "multi service name" problem, but a "multi upstream" problem.
--
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
[GitHub] [apisix] foxchenlei commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
foxchenlei commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1154674453
ok,I hope it can be realized. thanks
--
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
[GitHub] [apisix] tzssangglass commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1153444647
If I understand correctly, you deploy many of the same services to deal with network instability (bless at least one of them is a stable service).
IMO, Then this is equivalent to ensuring high availability of the service at the design level instead of relying on k8s, which is not good design and seems redundant.
It may be possible to support multiple service_names, but it's a bit awkward in this scenario.
--
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
[GitHub] [apisix] foxchenlei closed issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
foxchenlei closed issue #7202: feat: apisix discovery for kubernetes support multi service_name
URL: https://github.com/apache/apisix/issues/7202
--
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
[GitHub] [apisix] jagerzhang commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
jagerzhang commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1204691088
> 感谢回复,我了解下sidecar看看。能方便说下你们生产环境用的哪个sidecar吗
自己写的哈,基于Python或者Golang都可以,功能就是将应用的端口等信息注册到注册中心
--
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
[GitHub] [apisix] soulbird commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
soulbird commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1149334118
Why we need this?
--
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
[GitHub] [apisix] tokers commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1156200906
The use case is not so general IMHO. It's just like a hack way to support multiple service names.
--
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
[GitHub] [apisix] tokers commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1149335928
@foxchenlei Could you share with us some scenarios that you might meet?
--
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
[GitHub] [apisix] zhixiongdu027 commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
zhixiongdu027 commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1155884132
> 1、My kubernetes network plugin is not stable, So i have to use host network of pods. There are many service names , they provide same application with different ports.
> 2、To avoid http status like 504,502 ..., I can add/delete svc on apisix when pods are rolling update.
I think this problem should be solved by routing forwarding instead of "support multiple service_names"
--
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
[GitHub] [apisix] foxchenlei commented on issue #7202: feat: apisix discovery for kubernetes support multi service_name
Posted by GitBox <gi...@apache.org>.
foxchenlei commented on issue #7202:
URL: https://github.com/apache/apisix/issues/7202#issuecomment-1193487360
新项目会这么做,老项目无人维护,用注册中心还要修改代码。其实 别的ingress都支持多个svc,例如traefik。而且线上已经这么跑了。这边了解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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org