Replies: 4 comments 4 replies
-
The use case is that you want to define a list of hostnames instead of being constrained to a single hostname for an Ingress or a VirtualServer. An example that immediately jumps to mind is external.dns.name and internal.dns.name to align with the behavior that NGINX does hostname validation by default. Does that align with the thinking? Do you have a different example? |
Beta Was this translation helpful? Give feedback.
-
Any alias would be appended after the hostname. See:
It would be relatively straightforward to use an alias annotation that post-pends after the canonical host name given in the main body of the configuration. I am guessing that the historic reason for not adding this is that hostname collisions could happen. Today that is resolved by using the oldest object wins methodology. But it could be possible to introduce an alias on one ingress object that clashes with an alias defined on another. In the case of a business merge or similar, I could see an alias quickly being some alternative DNS name. I am also curious how this might relate to projects such as external-dns or loadbalancers. Or if in those cases it is not worried about. |
Beta Was this translation helpful? Give feedback.
-
For both Ingress and VirtualServer |
Beta Was this translation helpful? Give feedback.
-
For VirtualServer, would this be a new spec block or will the existing For example:
|
Beta Was this translation helpful? Give feedback.
-
Hello,
is there any functionality similar to what's provided by the other ingress controller via the annotation nginx.ingress.kubernetes.io/server-alias?
It's an easy way how to add multiple hosts to the configuration.
I searched the documentation a little, but haven't found anything so I have to use the alternative approach with YAML anchors to reuse the same http configuration section by multiple hosts.
It would be nice to have this feature available though.
Beta Was this translation helpful? Give feedback.
All reactions