Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In version 3.9.1 apisix, multiple ingress controllers are deployed in the same K8S cluster, corresponding to the same set of etcds, and consul is used for service discovery, and some apisix pods are forwarded after rolling updates, and the upstream node is considered unavailable and thus 503 #11847

Open
lvdb-wuzihong opened this issue Dec 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lvdb-wuzihong
Copy link

lvdb-wuzihong commented Dec 22, 2024

Description

部署架构
As shown in the image, the route is configured via CRD
This is one of the routing configurations right now:
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
If I don't add resolveGranularity: service, it will be forwarded after a while and there will be problems

The consul service found the configuration with the problem:
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

Is it a problem with the deployment architecture or something, because we didn't find a problem with consul, if there is a problem, there should be a problem with these multiple sets of apisix pods

Environment

  • APISIX version 3.9.1
  • Operating system Linux apisix-57b7d7d8fb-7lz26 5.10.134-17.2.al8.x86_64 change: added doc of how to load plugin. #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
@dosubot dosubot bot added the bug Something isn't working label Dec 22, 2024
@lvdb-wuzihong lvdb-wuzihong changed the title 3.9.1版本apisix,同一个K8S集群部署了多个ingress controller,对应同一套etcd,使用consul做服务发现,部分apisix pod滚动更新后就出现了转发问题,认为上游node节点不可用从而503 In version 3.9.1 apisix, multiple ingress controllers are deployed in the same K8S cluster, corresponding to the same set of etcds, and consul is used for service discovery, and some apisix pods are forwarded after rolling updates, and the upstream node is considered unavailable and thus 503 Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant