Deleting state.kubectl get ns | grep <namespace name> shows terminating status.kubectl api-resources --namespaced -o name | paste -d ',' -s | xargs kubectl get -n <namespace> shows only service and corresponding gateway objects.vSphere with Tanzu 8.0
Ako pod failed to connect to Avi Controller causing gateway object deletion failed.
Fix the ako to Avi Controller connectivity issue following How to renew SSL certificates for AVI Loadbalancer and vSphere with Tanzu
Regenerate new Avi Controller certificates.
Replace Supervisor configuration with new certificates.
Restart ako pod.
The stuck gateway and service object will be automatically removed as well as namespaces.