Using the Tanzu Service Mesh CLI, you can create a Domain Name System (DNS) account based on an external DNS service, such as Amazon Route 53, to enable DNS functionality in Tanzu Service Mesh.
To create a DNS account with the Tanzu CLI, you must describe its configuration in a YAML file and then apply the configuration file. The account will be added to your tenant in Tanzu Service Mesh.
To create a DNS account configuration file, you need to get the API specification for a DNS account in YAML format from Tanzu Service Mesh, create a YAML file based on the specification, and provide configuration values in the file. You can then apply the account configuration file.
For more information about DNS accounts in Tanzu Service Mesh, see Manage Domains.
Prerequisites
Create an integration account for your external DNS provider (for example, AWS) in Tanzu Service Mesh. You must provide the ID of the integration account in the configuration of the DNS account. For information about creating an AWS integration account, see Create an AWS Integration Account Using the CLI.
Verify that you are familiar with the Kubernetes YAML manifest format.
Procedure
Example: A configuration YAML file for a DNS account
apiVersion: externaldns.tsm.vmware.com/v1 kind: ExternalDNS metadata: name : sample-dns-account spec: name: sample-dns-account description: "Sample DNS account" infrastructure_account_id: sample-aws-account dns_type: GLOBAL dns_region: "us-west-2"
What to do next
The new DNS account is added to the Admin area of the Tanzu Service Mesh Console. To view the details of the new account, perform these steps:
In the navigation pane on the left, click
.In the table on the DNS & Domains page, locate the row for the DNS account that you created.