Content-Length: 288348 | pFad | https://github.com/kubernetes/ingress-gce/issues/537

02 Long namespace/ingress names cause collisions with auto-created resources on GKE · Issue #537 · kubernetes/ingress-gce · GitHub
Skip to content

Long namespace/ingress names cause collisions with auto-created resources on GKE #537

Closed
@NickLavrov

Description

@NickLavrov

I noticed this after creating one ingress that worked fine, then creating another ingress which caused the first ingress to behave incorrectly (default backend 404, etc).

As far as I can tell, at least these resources and annotations are added to the ingress by GKE:

  • ingress.kubernetes.io/forwarding-rule
  • ingress.kubernetes.io/target-proxy
  • ingress.kubernetes.io/url-map

If my namespace was called xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (32 chars) and my ingress was named xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, I'd see resources with names like:
k8s-um-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxx0

This is fine if there's only one ingress, but since my other ingress also started with the same set of characters, there would be a collision. I've looked at the resources/annotations it creates when using shorter names, and I notice that it means to append some random characters at the end. Here, it looks like I'm hitting the 64 character limit before it gets to that random string.

Maybe removing the 64 character limit or adding documentation about how these names are generated would help with this. It took me a while to look into this annotation as the root of my issues.

NOTE: This is the file that contains the naming logic https://github.com/kubernetes/ingress-gce/blob/master/pkg/utils/namer.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/kubernetes/ingress-gce/issues/537

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy