You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "lvdb-wuzihong (via GitHub)" <gi...@apache.org> on 2024/12/22 14:06:12 UTC
[I] 3.9.1版本apisix,同一个K8S集群部署了多个ingress controller,对应同一套etcd,使用consul做服务发现,部分apisix pod滚动更新后就出现了转发问题,认为上游node节点不可用从而503 [apisix]
lvdb-wuzihong opened a new issue, #11847:
URL: https://github.com/apache/apisix/issues/11847
### Description

如图所示,通过crd配置的路由
这是现在的其中一个路由配置:
apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
name: demo
namespace: demo
spec:
http:
- backends:
- resolveGranularity: service
serviceName: demo
servicePort: 80
match:
hosts:
- api.demo.com
paths:
- /*
name: rule1
plugin_config_name: demo
如果我不加resolveGranularity: service,过一段时间就会转发也出问题
consul服务发现出问题的配置:
apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
name: demo
namespace: demo
spec:
http:
- match:
hosts:
- demo.com
paths:
- /*
name: rule1
plugin_config_name: demo
upstreams:
- name: demo
---
apiVersion: apisix.apache.org/v2
kind: ApisixUpstream
metadata:
name: demo
namespace: demo
spec:
discovery:
serviceName: demo
type: consul
retries: 5
是部署架构的问题还是什么问题,因为我们没发现consul有问题,如果有问题的话,应该这多套的apisix的pod都应该转发出问题的
### Environment
- APISIX version 3.9.1
- Operating system Linux apisix-57b7d7d8fb-7lz26 5.10.134-17.2.al8.x86_64 #1 SMP Fri Aug 9 15:49:42 CST 2024 x86_64 GNU/Linux
- OpenResty / Nginx version openresty/1.25.3.1
- etcd version, etcdctl version: 3.5.15
--
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