-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
cluster name cannot contain dash (-) #198
Comments
@antoniobeyah Please note for your potential PR that the restriction on the dash is rooted in how resolution of the loadbalancer is done in AWS. Specifically for when we're assembling an ingress list from existing AWS resources. We use the dash to discern cluster name from other properties. The PR would need to take this in account. I recall ALB naming being quite restrictive, so this might be something to look into. |
I've just run into this. Personally I'd be happy with any separator character to use in NB: just tried an underscore and it results in |
Right, that's our biggest limitation at the moment. Really the I'd like to propose we add another environment variable I'd like to try implementing this today so let me know your thoughts @antoniobeyah as I know you may have already started on a PR. |
Instead of trying to control the name of the LB based on the cluster name would it make more sense to just use a tag on the load balancer? That way you can just do an exact match against the tag value? |
While that's possible, I think I still like the idea of being able to login to the AWS console and see clearly at a glance what LBs belong to what controller. I'd rather not just drop a bunch of arbitrary UID(s) or hashs of some sort. I'm open to adding This would also prevent us from having to rework a bunch of the assembly logic today. Thoughts? |
In that case my vote would be to use the cluster name tag for discovery and just stripping the invalid characters from the LB name for display (use Some use cases for the cluster tag:
I'm not opposed to having a |
@antoniobeyah, stripping the invalid characters for just the alb naming sgtm. |
Let me know if/when you start work on this so I don't duplicate effort. |
- No longer limited to 11 characters and no `-` characters in the CLUSTER_NAME environment variable. - This restriction was originally introduced due to naming limitations in the ALB controller. Going forward, we create a second field to hold the albNamePrefix. This field still uses the value of CLUSTER_NAME but strips any `-` characters and limits it to 11 characters. - Resolves: #198
This limitation has been removed in 918d034 |
- In AWS, ALB naming must comply with "^[a-zA-Z0-9]+$". - This commit ensures the CLUSTER_NAME (used as the base for the ALB Name prefix) is cleaned of any chars that don't match the regex above. - Relates: #198
Enhanced in aca9241 to ensure ALB name always complies with |
When loading the latest image, I get the error:
This issue is not present on the
0.8
image. Can some details be added on why this is a restriction and/or just remove the check?Ref
Full Log (
latest
imageb58d0f278b
):`https://github.com/coreos/alb-ingress-controller/blob/a8342042c7be1ca6ea1ab935924a440c0d7d4ea9/pkg/controller/alb-controller.go#L76-L78
The text was updated successfully, but these errors were encountered: