By dardanos
I have a domain configured in DO. My k8s cluster runs in DO and I’m pretty happy with it. The landing page for my company runs in vercel.co so now I want to configure my domain to handle users accessing the webpage or the microservices behind the load balancer.
I want to have the following behavior:
GET example.com -> 72.72.21.21 (vercel.co)
GET *.example.com -> DO load balancer
My DO load balancer is a service in k8s with an ingress controller. I can dynamically create Ingress routes like api.example.com and It should send the traffic to the load balancer.
Accesing example.com should send traffic to the ip address.
Can I acomplish this with 2 A record and setting one to *.example.com or not?
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!
Accepted Answer
This sounds like it would be configurable in a domain managed by DO. Just using the subdomain routing and setting your wildcard to your DOKS LB and your domain to the IP you mentioned.
Hope this helps!
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.