External-dns: Question: how to specify a custom hostname for ingress

Created on 29 Jan 2018  路  4Comments  路  Source: kubernetes-sigs/external-dns

I need to put a Cloudfront distribution in front of my Ingress Controller ELB and wonder if there is a way to have external-dns use the Cloudfront distribution hostname (so let's say it's an arbitrary static value) for the Ingress endpoint instead of the Ingress ELB endpoint. In this case, I have one backend per ingress so I can use a global annotation. In fact, I have a dedicated Ingress Controller and external-dns instance so I can even use a global value for all the endpoints.
I tried to use the external-dns.alpha.kubernetes.io/target and the --fqdn-template parameter without success, so I hope I'm missing something :)
Thanks

kinsupport

Most helpful comment

Hi @hjacobs this can be closed now via #545

All 4 comments

Did you try the

external-dns.alpha.kubernetes.io/hostname

annotation as well?

Is there a way to specify multiple hostnames for case when you have virtual hosting type of Ingress behind ELB?

I just found PR #256 and the answer is YES, just use , as delimiter :smile:

external-dns.alpha.kubernetes.io/hostname=name1,name2,nameX

Hi @hjacobs this can be closed now via #545

Was this page helpful?
0 / 5 - 0 ratings