ingress-merge icon indicating copy to clipboard operation
ingress-merge copied to clipboard

Merging annotations ?

Open eddycharly opened this issue 5 years ago • 4 comments

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 ?

eddycharly avatar Jun 07 '19 12:06 eddycharly

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

jakubkulhan avatar Jun 08 '19 19:06 jakubkulhan

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.

Mr-Howard-Roark avatar Jun 08 '19 22:06 Mr-Howard-Roark

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.

eddycharly avatar Jun 08 '19 22:06 eddycharly

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 ?

low-on-mana avatar Mar 13 '20 12:03 low-on-mana