Domain Name Access
Applications deployed in different clusters can be accessed using a unified public domain name. After you configure a public domain name, MCP can use it as a root domain name to generate a complete domain name for applications. You can configure domain name access to interconnect a Service and ingress with HUAWEI CLOUD DNS so that applications deployed across clusters can be accessed through the unified domain name. In addition, you can customize the traffic distribution ratio to best suit your needs.
Configuring a Domain Name
Before configuring domain name access for an application, ensure that the domain name has been registered with the domain name service provider and licensed. Otherwise, the domain name cannot be accessed.
If you have a registered and licensed domain name, go to 3 to create a public zone.
If you have not registered a domain name, buy a public zone and complete the licensing, resolution, and configuration of the domain name as prompted. The procedure for domain name registration and licensing is as follows:
- Buy a public domain name, for example, mcpclub.cn.
- If you have not bought a public domain name, buy a public domain name.
- If you have bought a public domain name, go to 2.
- Submit your domain name for license.
- If your public domain name has not been submitted for ICP license, apply for a license at the HUAWEI CLOUD ICP license center.
- If your public domain name has been licensed, go to 3.
- Create a public zone.
- If you have not created a public zone, create a public zone.
- If you have created a public zone, go to 4.
- Configure a domain name.
Select the domain name that has been configured and click Configure Domain Name.
Figure 1 Configuring a domain name
Creating Domain Name Access
After a Deployment is created, you can click Create Service to create a Service of the LoadBalancer type so that the Deployment can provide services for external systems. On the page indicating that the LoadBalancer Service is created, click Create Domain Name Access.
- Log in to the MCP console, choose Domain Name Access in the navigation pane, and click Create Domain Name Access.
- Set parameters of the associated Service.
- Namespace: Select a namespace.
- Target Service: Select a target service. If no LoadBalancer Service has been associated, create such a LoadBalancer Service first. For details on how to create a Service, see LoadBalancer.
- Click Next and set the access mode.
- Active/Standby: The traffic will be distributed only to the selected active cluster. You can change the traffic ratio to change the role of active and standby clusters. If automatic switchover is enabled, the DNS traffic resolution will be automatically switched to the standby cluster when the active cluster becomes faulty.
- Adaptive: The traffic is automatically distributed based on the number of pods in each cluster. In addition, you can enable region affinity to allow users in a specific region to access a specific cluster.
- Custom: You can customize the traffic distribution ratio across all the clusters. In addition, you can enable region affinity to allow users in a specific region to access a specific cluster.
- Click Create. The creation task will take a period of time. You can click Back to Domain Name Access List or View Domain Name Access Details to view the created domain name access.
Modifying an Alias
- Log in to the MCP console, and choose Domain Name Access in the navigation pane. Then, click a record to access the details page.
- Click
, enter an alias, and click
. Figure 2 Modifying an alias
Modifying the Traffic Distribution Ratio
- Log in to the MCP console, and choose Domain Name Access in the navigation pane. Then, click a record to access the details page.
- On the Topology tab page, click Edit Traffic Distribution Ratio.
- Modify parameters and click OK. Figure 3 Modifying the traffic distribution ratio
Viewing the Domain Name Access Address
After a domain name access record is created, you can view the domain name access address in the domain name access list.
- Log in to the MCP console, and choose Domain Name Access in the navigation pane.
- In the domain name access list, view the value in the Domain Name column.
Deleting Domain Name Access
- Log in to the MCP console, and choose Domain Name Access in the navigation pane.
- Click Delete in the Operation column of the target domain name access record.
- In the Delete Domain Name Access dialog box, click Yes.
Last Article: Differentiation Policies
Next Article: Monitoring Center
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.