Skip to main content
Version: 0.11

Custom Domain Names for your Applications

By default, an application deployed in Okteto Cloud will be available at its Okteto Cloud domain, which has the form *-$

For example, an application called hello deployed in the namespace cindylopez will be available at

To make your applications available on a non-Okteto Cloud domain (for example:, you can add a custom domain to your Okteto Cloud namespace.

Applications that use custom domains will automatically get issued a valid certificate, just like regular Okteto Cloud endpoints.

Okteto does not provide a domain registration service (for registering a custom domain name) or a DNS provider service.

Add a Custom Domain Name to your Application.

Perform the following tasks to register your custom domain in your Okteto Cloud account:

  1. Confirm that you own the custom domain name. Need a custom domain name? You can buy one with a domain registration service.

  2. Register your custom domain with Okteto Cloud by emailing us. Please include the domain, your github ID, and the namespace you want to use in the email.

  3. Update your DNS configuration so your custom domain points to Okteto Cloud's DNS target.

Configure your Application to use your Custom Domain

Once your domain has been registered with your Okteto Cloud account, it's time to put it to use.

If you're using Okteto Cloud's auto-ingress or generate the host features, then there's nothing to change. Just redeploy your application, and it will automatically pick up your custom domain.

For example, if your application's endpoint was and you added the custom domain, after redeployment your application's endpoint will be

Using your Root Domain

If you want to make your application available in the root domain you provided, you'll need to make a small change to your manifests.

If you're using Okteto Cloud's auto-ingress features, change the value of the annotation in your service to the word domain, as shown below:

apiVersion: v1
kind: Service
name: hello-service
annotations: "domain"
type: ClusterIP
- name: "hello-world"
port: 8080
app: hello-world

If you're creating your own ingress, change the value of the annotation in your ingress to the word domain, as shown below:

apiVersion: extensions/v1beta1
kind: Ingress
name: hello-ingress
annotations: "domain"
- http:
- backend:
serviceName: hello-world
servicePort: 8080

Okteto will automatically generate the correct host at deploy time. For example, if you added the custom domain to your namespace, the ingress will be created with as the host.

$ kubectl get ingress custom-dns
NAME         HOSTS          ADDRESS                                                     PORTS     AGE
custom-dns,,, 80, 443 169m

We recommend you use this approach instead of hard-coding the host name in your manifests to keep them portable across namespaces.

Docker compose applications

If you deployment is powered by a docker compose manifest, add a label to the service you want to configure a custom domain as shown below:

build: .
replicas: 1
- 8080:8080
- DB_HOST=postgres://pguser:pgpass@postgres:5432/pgdb
- secret=dev
labels: "true"
image: bitnami/postgresql:latest
- 5432
- data:/bitnami/postgresql

Configure your DNS

In order to use your custom domain in Okteto, you'll need to point your custom DNS to $

You usually configure a CNAME record with your DNS provider to point to it. We recommend you add a wildcard entry so you don't need to create an entry for every service deployed:


Consult your DNS provider's documentation for specific instructions on creating CNAME records.

You can confirm your DNS is configured correctly with the host command, assuming your DNS changes have propagated:

$ host is an alias for has address ...