You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/07/18 02:23:55 UTC
[GitHub] [apisix-ingress-controller] AlinsRan commented on issue #941: bug: ingress controller pod crashes when ingress is deleted
AlinsRan commented on issue #941:
URL: https://github.com/apache/apisix-ingress-controller/issues/941#issuecomment-1186697659
1. yaml and version info
* apisix-ingress-controller version
```shell
$ apisix-ingress-controller version
apisix-ingress-controller version 1.4.1-no-git-module-go1.16.15
```
* ingress.yaml
```yaml
# ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: httpserver-ingress
spec:
# apisix-ingress-controller is only interested in Ingress
# resources with the matched ingressClass name, in our case,
# it's apisix.
ingressClassName: apisix
rules:
- host: httpbin.org
http:
paths:
- backend:
service:
name: httpbin
port:
number: 80
path: /
pathType: Prefix
```
```shell
# create ingress resource
$ kubectl apply -f ingress.yaml
# verify
$ curl http://172.18.0.2:31091/ip -H 'Host:httpbin.org'
{
"origin": "10.244.0.1"
}
# delete ingress resource
$ kukubectl delete ingress httpserver-ingress
ingress.networking.k8s.io "httpserver-ingress" deleted
# result
$ kubectl get pods -n $NS
NAME READY STATUS RESTARTS AGE
apisix-bfd7b7fc-bxljf 1/1 Running 0 6m4s
apisix-etcd-0 1/1 Running 0 6m4s
apisix-etcd-1 1/1 Running 0 6m4s
apisix-etcd-2 1/1 Running 0 6m4s
apisix-ingress-controller-6c4f7b6749-cmwvg 1/1 Running 0 6m4s
```
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org