ingress-merge
ingress-merge copied to clipboard
Merging annotations ?
Is this possible to merge annotations from several ingresses into the generated one ?
I mean i have some redirection rules in the original annotations that are not merged into the generated annotation, is there a way to get them merged somehow ?
Hi, no annotations don't get merged. However, you can specify annotations for the resulting ingress in the configmap - https://github.com/jakubkulhan/ingress-merge#configuration-keys
You can also specify annotations on your services, which take precedence over ingress annotations. I have found this to work well with the merge ingress controller. You can have a core set of annotations in the configmap that all ingresses share and then customize each service with whatever annotations are necessary.
Thanks, i will look at service annotations on Monday. I need to add action annotations to perform custom redirects. Not sure if I can add them on the service directly.
I have a requirement for this case too. Want to keep loadbalancer annotations in shared configmap And keep targetgroup annotations ( like healthcheck etc ) in ingress object.
How do I achieve this ?