How to Add Annotations to All Ingresses in EKS with Helm?

0
2
Asked By CuriousCat89 On

I'm working with the ingress-nginx helm chart and external-dns in my EKS cluster, and I'm looking for a straightforward method to add an annotation to all existing and future ingresses. This is to set up an external-dns annotation for Route 53 weight, as I'm aiming for a blue/green deployment with two EKS clusters. Is there an easy way to implement this through the ingress-nginx helm chart, or should I look into using something like a mutating admission webhook, such as Kyverno?

5 Answers

Answered By KubeMaster42 On

It sounds like you'll want to add the annotation to your app ingress, assuming you have NGINX as the ingress class. This should let external-dns create or update the necessary records.

Answered By ClusterNinja42 On

If your ingresses are managed as helm charts, you can just add your annotations there and redeploy them. But I get that managing this outside of app ingress is a bit tricky for you.

Answered By TechGuru93 On

Have you considered using the Gateway API? If you prefer sticking with NGINX, check out NGINX Gateway Fabric for your use case.

Answered By CloudySky21 On

You might want to look into setting "controller.ingressClassResource.annotations" in your values.yaml, that should do the trick for adding annotations.

Answered By DevOpsAce77 On

How are you handling your ingress deployments? Using tools like Argo/Flux with a kustomize controller could make managing annotations easier.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.