Skip to main content

Overview

This quickstart guides you through configuring a custom domain for your workload. You’ll map your own domain to serve traffic to your application with automatic TLS certificates, load balancing, and geo-routing. What you’ll accomplish:
  • Register and verify your apex domain
  • Configure path-based routing to your workload
  • Access your application via your custom domain

Prerequisites

  • Completed Quickstart 1 with a running workload
  • A domain name you own with access to its DNS settings
This quickstart uses example.com as a sample domain. Replace it with your own domain throughout the guide.
So far, you’ve created a GVC (quickstart-gvc) and deployed a workload (hello-world). Now you’ll configure a custom domain to serve traffic to your application.

Step 1: Register Your Apex Domain

An apex domain (e.g., example.com) must be verified before creating subdomains. Even if you only use subdomains, verify the apex first.
1

Create the apex domain

Click Domains in the left menu, then click New. Click Advanced, then enter your apex domain (e.g., example.com).
2

Verify domain ownership

You’ll be prompted to prove ownership by adding a TXT record to your DNS. Add the displayed TXT record to your DNS provider and wait a few minutes for propagation.
3

Set routing mode to None

Scroll down to Routing Mode and select None since we’re only verifying ownership of the apex domain.
4

Create the apex domain

Click Create.
Create the apex domain in your production org as a best practice.

Step 2: Configure Your Subdomain

Now configure a subdomain (e.g., app.example.com) to route to your workload.
1

Create the subdomain

Click Domains > New. Enter your subdomain (e.g., app.example.com).
2

Select workload

Select the hello-world workload from the quickstart-gvc GVC.
3

Configure DNS

Add the displayed CNAME record to your DNS provider.
4

Create the subdomain

Once the DNS record is configured, click Create.
Control Plane automatically provisions TLS certificates once DNS propagates and your workload is ready. This may take a few minutes.

Step 3: Test Your Domain

Open https://app.example.com in your browser. Your application loads with a valid TLS certificate.

Routing Modes

Control Plane supports two routing modes:
ModeDNS RecordBest For
Path-basedCNAMEMultiple workloads on different paths (/api, /web)
Subdomain-basedNSUnique subdomain per workload (api.app.example.com)
Route different paths to different workloads:
  • https://app.example.com/api → API workload
  • https://app.example.com/web → Frontend workload
  • https://app.example.com/ → Default workload
Each workload gets its own subdomain automatically:
  • https://api.app.example.com → API workload
  • https://web.app.example.com → Frontend workload
Requires NS record delegation to Control Plane.

What’s Configured

Your domain now provides:
  • Automatic TLS - Certificates provisioned and renewed automatically
  • Global load balancing - Traffic routed to the nearest healthy location
  • Path-based routing - Multiple workloads can share the same domain

Continue

4. Service-to-Service Communication

Learn how workloads communicate internally with mTLS encryption.

Clean Up

If you want to stop here instead, delete the resources created in this quickstart:
Navigate to Domains, select your domain, and click Delete.
Remember to remove the DNS records from your DNS provider after deleting the domain from Control Plane.