Secondary/Additional Domains #908
jalim
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Nice! I've run been running multiple domains but I'm not using external-dns yet so this will be good to reference. Something you may want to note is to ensure adding all domains in your content-security-policy |
Beta Was this translation helpful? Give feedback.
0 replies
-
And now, k8s-gateway, for DNS resolution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was interested in hosting a service using an secondary/additional domain name while still utilising the single Cloudflared ingress. Seeing as there wasn't documentation for this case I'll try to document what I modified to make it all work. For reference, both primary and secondary domains were both using cloudflare and my cloudflare token had permissions for both zones.
In order for cert-manager to order new certificates I added the secondary domain to the issuer:
and created a new certificate request in the nginx config:
In order for external-dns to add the correct cname records I added to the domain filter in the helmrelease as such:
Then I added ingress rules to the cloudflared config as such:
To test I added the following to echo-server HR:
All seems to work smoothly and as expected.
Beta Was this translation helpful? Give feedback.
All reactions