-
Notifications
You must be signed in to change notification settings - Fork 319
Description
I recently ran into an issue where due to a combination of somewhat long namespace + ingress name, a GCE load balancer was created for each of two ingresses with very similar name
k8s-um-abcdefghijklmn-abcde-prod-abcdefghijklmn-admin-server-p0
k8s-um-abcdefghijklmn-abcde-prod-abcdefghijklmn-admin-server-q0
and the SSL certificate configured for both had the same name
k8s-ssl-abcdefghijklmn-abcde-prod-abcdefghijklmn-admin-server-0
While it seems GCP allows this, other ingress-aware components, in my case cert-manager, can get confused and the issue I saw was the SSL certificate being bounced between the two load balancers. As cert-manager presumably has no idea what the GCP load balancer name / SSL cert name is for an ingress, I guess the issue is in the ingress controller. Either it should correctly operate ingresses of different names which happen to have the same name of load balancer / SSL cert, or ingresses should be rejected if they would result in too long a name to be unique.