Create a Domain Name

Add domain name resources to the platform and allocate domains for use by all projects under a cluster or resources under a specific project. When creating a domain name, binding a certificate is supported.

Note: The domain names created on the platform should be resolved to the cluster's load balancing address before they can be accessed via the domain name. Therefore, you need to ensure that the domain names added on the platform have been successfully registered and that the domain names resolve to the cluster's load balancing address.

Successfully created and allocated domain names on the platform can be utilized in the following features of Container Platform:

  • Create Inbound Rules: Network Management > Inbound Rules > Create Inbound Rule

  • Create Native Applications: Application Management > Native Applications > Create Native Application > Add Inbound Rule

  • Add Listening Ports for Load Balancing: Network Management > Load Balancer Details > Add Listening Port

Once the domain name is bound to a certificate, application developers can simply select the domain name when configuring the load balancer and inbound rules, allowing the use of the certificate that comes with the domain name for https support.

Operation Steps

  1. Go to Platform Management.

  2. In the left navigation bar, click Network Management > Domain Names.

  3. Click Create Domain Name.

  4. Configure the relevant parameters according to the following instructions.

    ParameterDescription
    Type
    • Domain: A complete domain name, e.g., developer.test.cn.
    • Wildcard Domain: A wildcard domain with a wildcard (*) character, e.g., *.test.cn, which includes all subdomains under the domain test.cn.
    DomainEnter a complete domain name or domain suffix based on the selected domain name type.
    Allocate ClusterIf a cluster is allocated, you also need to select a project associated with the allocated cluster, such as all projects associated with the cluster.
    CertificateIncludes the public key (tls.crt) and private key (tls.key) for creating a domain name-bound certificate. The project to which the certificate is allocated is the same as the bound domain name.
    Notes:
    • Binary file imports are not supported.
    • The bound certificate should meet the conditions of correct format, within the validity period, and signed for the domain name, etc.
    • After creating the bound certificate, the name format of the bound certificate is: domain name - random characters.
    • After creating the bound certificate, the bound certificate can be viewed in the certificate list, but updates and deletions of the bound certificate are only supported on the domain detail page.
    • After creating the bound certificate, updating the certificate content is supported, but replacing other certificates is not supported.
  5. Click Create.

Subsequent Actions

  • Domain Registration: Register the domain if the created domain has not been registered.

  • Domain Resolution: Perform domain resolution if the domain does not point to the platform cluster's load balancing address.