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
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.
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.
Have you considered using the Gateway API? If you prefer sticking with NGINX, check out NGINX Gateway Fabric for your use case.
You might want to look into setting "controller.ingressClassResource.annotations" in your values.yaml, that should do the trick for adding annotations.
How are you handling your ingress deployments? Using tools like Argo/Flux with a kustomize controller could make managing annotations easier.
Related Questions
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String