By daniktihiy
My website is located in the DO App and besides this, I have a lot of things in the k8s cluster. I don’t wanna put my website to the k8s, cuz my experience is quite a bit, and especially when DO App provides Global CDN / CI CD / HTTPS by default, so the question is there any way to redirect my users to the website CDN when they try to reach out to domain.com and on domain.com/somethingSpecific redirect them to the k8s LoadBalancer ingress controller?
Maybe I should tell DNS to point domain.com to the k8s ingress and there somehow point “/” path to the DO CDN and specific routes point to the k8s services? I know that I can tell DNS to point subdomains, e.g. api.domain.com. to the k8s, but I wanna freely pass the cookies in the requests from the main domain.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
One way you can implement this logic is directly in your DO App. I don’t know what framework you’re using, but it probably has some kind of routing functionality such that when someone visits domain.com/somethingSpecific you can either:
Would something like this work?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.