Tanzu Platform SaaS

Configure domains

Last Updated February 19, 2025

This topic tells you how to create and manage the domains that Kubernetes applications can use in Tanzu Platform.

For conceptual information about domains in Tanzu Platform, see About network ingress.

To create a domain, you must:

  1. Create a DNS provider: This is the service that Tanzu Platform uses to create DNS records for the Global Server Load Balancer (GSLB).

  2. (Optional) Create a certificate provider: This is the service that Tanzu Platform uses to create and manage certificates to enable TLS for the GSLB. If you do not assign a certificate provider to a domain, the GSLB provides HTTP rather than HTTPS.

  3. Create the domain.

After you create a domain, you can create a domain binding to associate a Space with the domain.

Configure DNS providers

Configuring a DNS provider allows you to configure DNS for the domains that your applications use.

Before you begin

Create a GSLB credential in Administration > Infrastructure accounts > Public Cloud services.

Create a DNS provider

To create a DNS provider on Tanzu Platform:

  1. Go to Administration > Infrastructure configuration > Networking > DNS Providers.
  2. Click Create DNS Provider.

  3. Configure the following for the Route53 DNS provider:

    FieldInstructions
    NameEnter a name for the DNS provider
    ZoneProvide the zone information
    GSLB Credential IDFrom the drop-down menu, select a global server load balancing (GSLB) credential ID.
  4. (Optional) Under Health Check, configure health checks for your domain as follows:

    FieldInstructions
    ZoneProvide the health check zone information, or enable the Same as DNS Provider zone toggle
    IntervalEnter the interval between health checks in seconds. For example, 50.
    TimeoutEnter the time to wait for the health check to fail in seconds. For example, 6.
    Failure ThresholdEnter the maximum number of times the health check can fail. For example, 3.
  5. Click Create.

Edit a DNS provider

After you create a DNS Provider, to edit the details for the DNS provider using the Tanzu Platform UI:

  1. Go to Administration > Infrastructure configuration > Networking > DNS Providers.
  2. Locate the DNS provider you want to edit.
  3. Click the vertical ellipsis at the top-right of the card.
  4. From the drop-down menu, click Edit.
  5. Make the changes you want to the DNS Provider.
  6. Click Save.

Delete a DNS provider

To delete a DNS provider using the Tanzu Platform UI:

  1. In the Tanzu Platform UI, go to Administration > Infrastructure configuration > Networking > DNS Providers.
  2. Locate the DNS provider you want to delete.
  3. Click the vertical ellipsis at the top-right of the card.
  4. From the drop-down menu, click Delete.
  5. In the confirmation dialog box, click Delete.

(Optional) Configure a certificate provider

This enables you to add server certificates for the domains that applications use.

Create a certificate provider

To create a certificate provider using the Tanzu Platform UI:

  1. Go to Administration > Infrastructure configuration > Networking > Certificate Providers
  2. Click Create Certificate Provider.
  3. Configure the text boxes with your server certificate as follows:

    FieldInstructions
    NameEnter a name for the certificate provider
    Certificate(s)Enter your PEM-encoded server certificate
    KeyEnter your PEM-encoded private key
  4. Click Create.

When the certificate provider is ready for a domain to use, its card will show Ready.

Edit a certificate provider

After you create a certificate provider, to edit the details for the certificate provider using the Tanzu Platform UI:

  1. In the Tanzu Platform UI, go to Administration > Infrastructure configuration > Networking > Certificate Providers
  2. Locate the certificate provider you want to edit.
  3. Click the vertical ellipsis at the top-right of the card.
  4. From the drop-down menu, click Edit.
  5. Enter the new certificate and key information.
  6. Click Save.

Delete a certificate provider

To delete a certificate provider using the Tanzu Platform UI:

  1. In the Tanzu Platform UI, go to Administration > Infrastructure configuration > Networking > Certificate Providers
  2. Locate the certificate provider you want to delete.
  3. Click the vertical ellipsis at the top-right of the card.
  4. From the drop-down menu, click Delete.
  5. In the confirmation dialog box, click Delete.

Configure domains

This section describes how to create, edit, and delete domains in the Tanzu Platform UI.

Create a domain

To create a domain using the Tanzu Platform UI:

  1. Go to Administration > Infrastructure configuration > Networking > Domains.
  2. Click Create Domain.
  3. Configure basic information for the domain as follows:

    FieldInstructions
    NameEnter a name for the domain
    DNS ProviderFrom the drop-down menu, select a DNS provider or choose to manage your own DNS solution.

    For instructions for creating a DNS provider, see Manage DNS providers earlier in this topic.

    The zone of the referenced DNS provider must match or be a parent of this domain.
    Certificate ProviderFrom the drop-down menu, select a certificate provider or choose to use unencrypted traffic (HTTP/TCP).

    For instructions for creating a certificate provider, see Configure certificate providers earlier in this topic.
    SubdomainsTo allow app operators or developers to automatically generate subdomains for this domain, enable the Auto-assignable toggle
    Allowed SubdomainsSpecify the allowed subdomains using a comma separated list. If you leave this text box empty, no subdomains are allowed. Use * to permit any subdomain.
    PortsTo allow app operators or developers to automatically assign a port on this domain, enable the Auto-assignable toggle
    Allowed PortsSpecify the allowed ports as a comma separated list. Ranges are supported. If you leave this text box empty, no ports are allowed. Use * to permit any port.
    Allowed SpacesSpecify the allowed Spaces as a comma separated list. If you leave this text box empty, no Spaces are allowed. Use * to permit any Space.
  4. Click Create.

Edit a domain

After you create a domain, to edit the details for the domain using the Tanzu Platform UI:

  1. Go to Administration > Infrastructure configuration > Networking > Domains.
  2. Locate the domain you want to edit.
  3. Click the vertical ellipsis at the top-right of the card.
  4. From the drop-down menu, click Edit.
  5. Enter the new domain information.
  6. Click Save.

Delete a domain

To delete a domain using the Tanzu Platform UI:

  1. Go to Administration > Infrastructure configuration > Networking > Domains.
  2. Locate the domain you want to delete.
  3. Click the vertical ellipsis at the top-right of the card.
  4. From the drop-down menu, click Delete.
  5. In the confirmation dialog box, click Delete.

Configure domain bindings

Domain bindings associate a Space with a domain in Tanzu Platform.

Create a domain binding

Tanzu Platform UI
To create a domain binding using the Tanzu Platform UI:
  1. Go to Spaces > Overview.
  2. Select the Space in which you want to create the domain binding.
  3. Go to the Ingress tab. You will see one or more domain bindings cards.
  4. Click Create Domain Binding.
  5. Configure the basic information for the domain binding as follows:

    FieldInstructions
    NameEnter a descriptive name for this binding
    DomainChoose from the available domains in your Project
    SubdomainSelect Auto-assign to automatically generate a subdomain based on the domain chosen. If you do not configure a subdomain, the binding is set to the exact FQDN of the domain object.
    PortSpecify a port to be exposed with this domain, or select Auto-assign for a port to be automatically assigned
  6. (Optional) Configure the advanced settings:

    FieldInstructions
    ConnectionSpecify the type of traffic you want the DomainBinding to support. The options are HTTP or TCP. HTTPS is included in the HTTP option.
    EntryPointSpecify an EntryPoint name. Routes use this to select this DomainBinding. If omitted, the platform defaults to main.
Tanzu CLI
To create a new DomainBinding resource using the Tanzu CLI:
  1. Set your Space context by running:

    tanzu space use SPACE-NAME
    

    Where SPACE-NAME is the name of the Space you want to use.

  2. Create a DomainBinding by running:

    tanzu domain-binding create DOMAIN-BINDING-NAME FLAGS
    

    Where:

    • DOMAIN-BINDING-NAME is the name you want for your DomainBinding.
    • FLAGS are the flags to configure domain, port, and entry point. For a complete list of the flags you can use, see tanzu domain-binding in the Tanzu CLI Documentation.

    For example, to create a DomainBinding from the domain dev.corp.com and request both a subdomain and a port to be automatically assigned:

    $ tanzu domain-binding create test --auto-assign-subdomain-of dev.corp.com --auto-assign-port
    DomainBinding busy-goose.dev.corp.com created
    

Delete a domain binding

To delete a DomainBinding resource, use the Tanzu CLI:

  1. Set your Space context by running:

    tanzu space use SPACE-NAME
    

    Where SPACE-NAME is the name of the Space you want to use.

  2. Delete the DomainBinding by running:

    tanzu domain-binding delete DOMAIN-BINDING-NAME
    

    Where DOMAIN-BINDING-NAME is the name of the DomainBinding you want to delete.

    For example:

    $ tanzu domain-binding delete test
      DomainBinding test deleted