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
- Log on to the ACK console.
- In the left-side navigation pane of the ACK console, click Clusters.
- In the upper-right corner of the Clusters page, click Cluster Template.
- 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 an ACK managed cluster.
- 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 an ACK dedicated cluster.
- For more information about the parameters that are required to create a managed Kubernetes cluster, see Create an ACK managed cluster.
- After you specify the required parameters, click Generate API Request Parameters. In the API Request Parameters dialog box, you can view the parameters that you have set.
- 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 an ACK dedicated cluster and Create an ACK managed cluster.
You can also use the copied cluster configurations to create an ACK cluster by using a CLI. For more information, see Create a cluster.