-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
delete ingress object hangs #95983
Comments
@dfang: There are no sig labels on this issue. Please add an appropriate label by using one of the following commands:
Please see the group list for a listing of the SIGs, working groups, and committees available. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@dfang: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Does the load balancer add a finalizer to the ingress object? (you can check with You can make delete return without waiting by adding |
yes, there is a finalizer, after read some docs and know what exactly finalizer is.
i remember i deleted the alb resource in aws management console before, so it always failed. after so i'll close it. thanks for your help ! |
I used:
and then I removed the finalizers but still the ingress is not deleted. This is in AWS EKS.
Do I need to do anything else for the changes to be applied? |
Facing the same issue @sabirmmoglad, were you able to resolve this?
I was playing around with 2048 game and trying aws ALB and kubernetes-nginx-ingress controllers, and achieved the same state somehow. |
update: |
I have also ended up in this situation, using the aws-load-balancer-controller. Sadly, deleting and then recreating the controller still causes kubectl to hang when deleting the ingress. Anyone else have more ideas for me to try? |
@jmmen1 try
|
I'm getting this issue too, AWS EKS 1.18 |
@sachincool - I am not able to delete the namespace, since I am using the default namespace. I deleted the AWS LB controller deployment, then attempted to delete the ingress objects, but it's still hanging when I attempt to delete the ingresses. |
I believe this issue is the same as the issue highlighted here .. |
Use following command to patch and delete the ingress-2048 kubectl patch ingress $Ingressname -n $namespace -p '{"metadata":{"finalizers":[]}}' --type=merge |
The correct command is without stdout sign: kubectl patch ingress $Ingressname -n $namespace -p '{"metadata":{"finalizers":[]}}' --type=merge |
Hello, I faced the same issue, deleting the below sections from the ingress resource made me able to delete it.
|
HI,
Here the output of the above command:
The Logs:
Someone, can give any tips ? |
It fails on the following error because of admission controller run: and then try to delete the ingress. |
Indeed @igor-pinchuk would prevent finalizer patch |
tnx. This is life saver. |
thank u so much!!! |
This worked for me too.. I was struggling with this dangling ingress.. Thanks..!! |
so the correct sequence would be
|
What happened:
delete ingress object hangs even with --force and --grace-period=0
no events in game-2048 namespace
What you expected to happen:
deleted
How to reproduce it (as minimally and precisely as possible):
it might be hard to reproduce
Anything else we need to know?:
on a eks cluster, the ingress is created from this doc,
after delete aws load balancer controller, i can't delete ingress object
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: