apisix-ingress-controller icon indicating copy to clipboard operation
apisix-ingress-controller copied to clipboard

request help: port not defined

Open jerrytaotz opened this issue 2 years ago • 2 comments

Issue description

When we try to update APISIXRoute CRD,the ingress controller report the error like this: 企业微信截图_20a983e2-1019-401e-a325-e3a92ab08ea4 It looks like this problem only appears when we try to update/delete ports, it works fine with adding new ports. The steps as followed:

  1. We first define two ports, 8080 and 8081 企业微信截图_8d0bc18f-97e0-456e-984b-1e3092c21254 The ingress controller create two upstreams correctly 企业微信截图_ae9faabc-14cf-4bb3-b55b-fe88fbddf461

  2. change port 8081 to 8083 企业微信截图_2a14d4f5-bb8d-4643-b291-720c31da05aa The error appears: service.spec.ports: port not defined

Environment

  • your apisix-ingress-controller version (output of apisix-ingress-controller version --long): 1.4.1

jerrytaotz avatar Aug 30 '22 13:08 jerrytaotz

Please paste CR configuration YAML directly instead of images.

This makes it easier for others to reproduce the problem

tao12345666333 avatar Aug 31 '22 01:08 tao12345666333

我也遇到过类似的问题,如果svc的port变化了,同步更新apisixroute的话就会出现这个问题,我这边的解决办法是如果port端口发生变化,我会删掉旧的apisixtroute 然后重新创建新的apisixroute

wolgod avatar Sep 02 '22 07:09 wolgod

This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Dec 11 '22 01:12 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Jan 11 '23 01:01 github-actions[bot]