apache / apisix-ingress-controller

APISIX Ingress Controller for Kubernetes
https://apisix.apache.org/
Apache License 2.0
1.02k stars 344 forks source link

bug: Unable to completely delete upstream data in ETCD #2292

Open wxqmail opened 2 months ago

wxqmail commented 2 months ago

Current Behavior

I created an apisixRoute, and when I tried to delete it, I found that the data in ETCD was not deleted.

deployment.yaml

apiVersion: apps/v1 kind: Deployment metadata: name: testhttpbin labels: app: testhttpbin spec: replicas: 2 selector: matchLabels: app: testhttpbin template: metadata: labels: app: testhttpbin spec: containers:


apiVersion: v1 kind: Service metadata: name: testhttpbin spec: selector: app: testhttpbin ports:


apiVersion: v1 kind: Service metadata: name: testhttpbin-preview spec: selector: app: testhttpbin ports:


apiVersion: apisix.apache.org/v2beta3 kind: ApisixRoute metadata: name: testhttpserver-route spec: http:

Expected Behavior

I executed kubectl delete apisixRoute testhttpserver-route, and it has been deleted from Kubernetes, but checking ETCD still shows that the data exists. 20240904-175754

Error Logs

No response

Steps to Reproduce

1、 kubectl apply -f deployment.yaml
2、 kubectl delete apisixRoute testhttpserver-route

Environment

fzj55 commented 2 months ago

1.Does the controller log say anything?2.What is the controller version?

wxqmail commented 2 months ago

1.Does the controller log say anything?2.What is the controller version?

apisix :2.15 controller : 1.8.0 error logs : failed to get upstream default_ testhttpbin_80: not foun

fzj55 commented 2 months ago

已经收到了谢谢

fzj55 commented 2 months ago

If this is just a demo, it is recommended to upgrade apisix . Ingress1.8 which should correspond to apisix3.0+

wxqmail commented 2 months ago

If this is just a demo, it is recommended to upgrade apisix . Ingress1.8 which should correspond to apisix3.0+

已经投入生产, 运行了有几个月的时间了