Custom domain setup

Hello there!

I’m working on creating a website on Okteto - it has a backend and a frontend, both deployed on the following two URLs:

  • https://backend-sotpotatis.cloud.okteto.net/
  • https://frontend-sotpotatis.cloud.okteto.net/

They work just fine, however, I would like to use a custom domain for both of them respectively, but I’ve hit a roadblock.

I would like to map the above-mentioned URLs the following way:

  • https://backend-sotpotatis.cloud.okteto.net/https://album-of-the-day-api.albins.website
  • https://frontend-sotpotatis.cloud.okteto.net/https://album-of-the-day.albins.website

I used these DNS settings for that:


However, when visiting the custom domain URLs, I get a 404 page.

I assumed it would be something with my docker-compose.yml, but I have tried adding all the following labels and none of them seem to work:

  • dev.okteto.com/auto-ingress: domain
  • dev.okteto.com/custom-domain: true
  • dev.okteto.com/auto-ingress: true
  • dev.okteto.com/generate-host: true
    (not at the same time, of course, I tried each of these separate)

As you might notice, I am using Cloudflare and would like to note that I tried both of their DNS modes: “Proxied” and “DNS only”.

I have read the docs and can still not solve it - what am I doing wrong?

Hello @sotpotatis!

While custom domains were once a feature available in Okteto Cloud, they are no longer supported within the platform. If you’re interested in utilizing this particular Okteto feature, you would need to consider using the Scale or Enterprise solutions.

Regards!

1 Like

Hi! That’s really a bummer for a student like me :frowning: Thanks for clarifying though! Is it possible you could make it more clear in the documentation in the future, so others do not make the same mistake?

Hi @sotpotatis!

Sorry to hear that :pensive: We will keep your comment in mind! If you have any suggestions on how to improve the documentation you can also send them to us using the “Edit this page” link at the bottom of the documentation page and share your ideas in the repository.

Regards!