Skip to content

Commit a06f0d9

Browse files
authored
Updated documentation to reflect the correct order of deletion for ingress-related resources #4341 (#4347)
Signed-off-by: Pradeep Lakshmi Narasimha <[email protected]>
1 parent fee9ed8 commit a06f0d9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/guide/ingress/ingress_class.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,4 +415,16 @@ When this param is absent or empty, the controller will keep LoadBalancer WAFv2
415415
Cluster administrators can use the optional `wafv2AclName` field to specify name of the Amazon WAFv2 web ACL.
416416
Only Regional WAFv2 is supported.
417417
When this param is absent or empty, the controller will keep LoadBalancer WAFv2 settings unchanged. To disable WAFv2, explicitly set the param value to 'none'.
418-
If the field is specified, LBC will ignore the 'alb.ingress.kubernetes.io/wafv2-acl-name' annotation.
418+
If the field is specified, LBC will ignore the 'alb.ingress.kubernetes.io/wafv2-acl-name' annotation.
419+
420+
### Resource Cleanup Order
421+
422+
When cleaning up AWS Load Balancer Controller resources, it's important to follow the correct order of deletion to avoid orphaned resources. The recommended order is:
423+
424+
1. Delete the Ingresses first
425+
2. Delete the IngressClass and IngressClassParams last
426+
427+
If you delete the IngressClass before the Ingresses that reference it, the Ingresses will become orphaned and cannot be cleaned up until the `ingressClassName` is manually removed from their manifests. This is because the AWS Load Balancer Controller's validating webhook requires a valid IngressClass to be present when processing Ingress resources.
428+
429+
!!!warning
430+
Deleting IngressClass resources before their associated Ingresses can result in orphaned resources that require manual cleanup. Always delete Ingresses first to ensure proper resource cleanup.

0 commit comments

Comments
 (0)