Overview
This quickstart guides you through configuring a custom domain for your workload. You’ll map your own domain 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 an example domain. Replace it with your own domain throughout the guide.quickstart-gvc) and deployed a workload (hello-world). Now you’ll configure a custom domain that routes traffic to your application.
- Console UI
- CLI
- Terraform
- Pulumi
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 verify 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 because you’re only verifying ownership of the apex domain.4
Create the apex domain
Click
Create.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 after the DNS propagates and your workload is ready. This may take a few minutes.
Step 3: Test Your Domain
Openhttps://app.example.com in your browser. Your application loads with a valid TLS certificate.Routing Modes
Control Plane supports two routing modes:Path-based routing examples
Path-based routing examples
Route different paths to different workloads:
https://app.example.com/api→ API workloadhttps://app.example.com/web→ Frontend workloadhttps://app.example.com/→ Default workload
Subdomain-based routing examples
Subdomain-based routing examples
Each workload automatically receives its own subdomain:
https://api.app.example.com→ API workloadhttps://web.app.example.com→ Frontend workload
What’s Configured
Your domain is now configured with:- Automatic TLS - Certificates provisioned and renewed automatically
- Global load balancing - Traffic is 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:- Console UI
- CLI
- Terraform
- Pulumi
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.