Home / Platform management / Networking / Domains / Create a domain

Create a domain

Add a domain resource in the platform and assign it to all resources or a specific resource under the cluster. When creating a domain, you can create a binding certificate.

Caution: The domain created on the platform needs to be resolved with the load balancing address of the cluster before it can access the computing components under the cluster through the domain. Therefore, you need to ensure that the domain added on the platform has been successfully registered and the domain has been resolved to the load balancing address of the cluster through domain resolution.

The domain created and assigned successfully on the platform can be used in the following functional modules:

When the domain is bound with a certificate, application developers can select the domain when configuring load balancing and inbound rules, and use the certificate that comes with the domain to support HTTPS.

Procedure

  1. In the left navigation bar, click Networking > Domain.

  2. Click Create Domain.

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

    Parameter Description
    Type
    • Domain: A complete domain name, such as developer.test.cn.
    • Wildcard domain: A wildcard domain name with an asterisk (*), such as *.test.cn, which includes all subdomains under the domain name test.cn.
    Domain Depending on the selected domain type, enter a complete domain name or domain name suffix.
    Allocated to (cluster) If a cluster is allocated, you also need to select a project associated with the cluster to be allocated, such as all projects associated with the cluster.
    Certificate Includes the public key (tls.crt) and private key (tls.key) of the certificate, which will be used to create a domain binding certificate. The project assigned to the certificate is the same as the domain name bound.
    Note:
    • Importing binary files is not supported.
    • The bound certificate should meet the conditions of correct certificate format, validity period, and domain name signature.
    • After creating a binding certificate, the name format of the binding certificate is: domain name - random characters.
    • After creating a binding certificate, you can view the certificate bound to the domain name in the certificate list, but only support updating and deleting the binding certificate on the domain details page.
    • After creating a binding certificate, you can update the certificate content, but cannot replace it with other certificates.
  4. Click Create.

What’s next