wxqmail opened a new issue, #2292:
URL: https://github.com/apache/apisix-ingress-controller/issues/2292
### 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:
- name: testhttpbin
image: reg.sprucetec.com/apptest/echo-server
ports:
- containerPort: 80
- containerPort: 8089
---
apiVersion: v1
kind: Service
metadata:
name: testhttpbin
spec:
selector:
app: testhttpbin
ports:
- protocol: TCP
port: 80
targetPort: 80
name: http
- protocol: TCP
port: 8089
targetPort: 8089
name: http-test
---
apiVersion: v1
kind: Service
metadata:
name: testhttpbin-preview
spec:
selector:
app: testhttpbin
ports:
- protocol: TCP
port: 80
targetPort: 80
name: http
- protocol: TCP
port: 8089
targetPort: 8089
name:
---
apiVersion: apisix.apache.org/v2beta3
kind: ApisixRoute
metadata:
name: testhttpserver-route
spec:
http:
- name: testhttpbin
match:
hosts:
- local.httpbin.org
paths:
- /*
backends:
- serviceName: testhttpbin
servicePort: 80
- resolveGranularity: service
serviceName: testhttpbin
servicePort: 80
- name: testhttpbin8089
match:
hosts:
- local.httpbin.org
paths:
- /8089*
backends:
- serviceName: testhttpbin
servicePort: 8089
- resolveGranularity: service
serviceName: testhttpbin
servicePort: 8089
### 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.

### Error Logs
_No response_
### Steps to Reproduce
1、 kubectl apply -f deployment.yaml
2、 kubectl delete apisixRoute testhttpserver-route
### Environment
- APISIX Ingress controller version (run `apisix-ingress-controller version
--long`)
- Kubernetes cluster version (run `kubectl version`)
- OS version if running APISIX Ingress controller in a bare-metal
environment (run `uname -a`)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]