This topic tells you how to configure domains if you want to use your own Global Server Load Balancer (GSLB). Use this topic if you have a GSLB that does not have an integration with Tanzu Platform.
Before you begin
Before you configure your domain, you must have a Space with Profiles that require the ingress.tanzu.vmware.com
Capability. The Space must be scheduled and in the ready state.
Configure the domain
- Tanzu Platform UI
- To configure a domain that uses your own GSLB with the Tanzu Platform UI:
- Navigate to Setup & Configuration > Networking.
- On the Domains tab, click Create Domain.
- In the Domain Name field, enter a domain name, for example,
example.com
. - In the DNS Provider field, select Manage my own DNS solution.
- Fill in the remaining fields as required.
- Click Create.
- Navigate to Spaces > Overview and choose the Space in which you want to create a domain binding.
- Navigate to the Ingress tab.
- Click Create Domain Binding.
- Enter a name for your domain binding, for example,
example.com
. - Select the domain you created.
- Click Create.
After you create the domain binding, a card with its information will show on the Ingress tab.
- Tanzu CLI
- To configure a domain that uses your own GSLB with the Tanzu CLI:
-
Select the Project you want to use by running:
tanzu project use PROJECT-NAME
Where
PROJECT-NAME
is the project you want to use. -
Create a domain without providing a DNS provider by running:
tanzu domain create NAME FLAGS
Where:
NAME
is the name of the domain you want to create, for example,example.com
.- (Optional)
FLAGS
are the flags you can use to configure your domain. For more information, see the Tanzu CLI documentation.
For example:
tanzu domain create example.com --allowed-ports "*" --auto-assignable-subdomains --auto-assignable-ports --allowed-spaces "*"
-
After the domain is created, select the Space in which you want to create the domain binding by running:
tanzu space use SPACE-NAME
Where
SPACE-NAME
is the name of the Space you want to use. -
Create a domain binding by running:
tanzu domain bind NAME FLAGS
Where:
NAME
is the name you want for your domain binding.- (Optional)
FLAGS
are the flags you can use to configure your domain. For more information, see the Tanzu CLI documentation.
For example:
tanzu domain bind example.com --auto-assign-subdomain --auto-assign-port
-
Output the domain bindings with corresponding IP addresses by running:
tanzu domain get NAME
Where
NAME
is the name of the domain you want to view information for.Example output:
Overview Name: bold-aardvark.example.com Bindings FQDN PORT ENTRYPOINT ADDRESSES bold-aardvark.example.com 1234 main 192.0.2.1
-
Content feedback and comments