This topic describes how to generate API request parameters that are used to create a Container Service for Kubernetes (ACK) cluster in the ACK console. When you fail to create an ACK cluster due to invalid parameter settings, you can use this feature to generate API request parameters. Then, you can create the ACK cluster by calling the API.

Procedure

  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, click Clusters.
  3. In the upper-right corner of the Clusters page, click Cluster Template.
  4. In the Select Cluster Template dialog box, select the type of the cluster that you want to create and click Create.
    On the configuration page that appears, set the cluster parameters. For more information about the parameters, see Create a dedicated Kubernetes cluster.
  5. Set the cluster parameters.
    To generate API request parameters, you must first specify a set of required parameters.
    • For more information about the parameters that are required to create a dedicated Kubernetes cluster, see Create a dedicated Kubernetes cluster.
    • For more information about the parameters that are required to create a managed Kubernetes cluster, see CreateCluster.
  6. After you specify the required parameters, click Generate API Request Parameters. OpenAPI
    In the API Request Parameters dialog box, you can view the parameters that you have set. Generate API Request Parameters
  7. Click Copy to copy the cluster configurations.
    You can directly call the API to create an ACK cluster by using the copied cluster configurations. For more information, see Create a dedicated Kubernetes cluster and CreateCluster.

    You can also use the copied cluster configurations to create an ACK cluster by using a CLI. For more information, see Create a cluster.