After Cloud Native Kit (CNKIT) is installed in a cluster, you can use the IntelliJ IDEA plug-in to start the CNKIT agent. After the CNKIT agent is started, you can open the CNKIT page on your device, and then develop, deploy, and debug code.
Prerequisites
- The CNKIT plug-in is installed in the Kubernetes cluster.
- The kubeconfig file for accessing a Kubernetes cluster is available on your local device.
Step 1: Install Alibaba Cloud Toolkit
- Download the offline installation package of the IntelliJ IDEA plug-in (the IntelliJ IDEA versions released from January 2020 to January 2022). You do not need to decompress the package after you download it.
- In the top navigation bar of IntelliJ IDEA, choose .
- On the Settings page, click Plugins in the left-side navigation pane.
- In the Plugins section, click the
icon, and select Install Plugin from Disk.... 
- In the Choose Plugin File dialog box, select the ZIP installation package in Procedure 1 to install IntelliJ IDEA. You do not need to decompress the installation package. After IntelliJ IDEA is installed, restart IntelliJ IDEA to take effect.
Step 2: Configure an Alibaba Cloud Toolkit account
After Alibaba Cloud Toolkit is installed, use your AccessKey ID and AccessKey secret to configure your Alibaba Cloud Toolkit account.
- In the top navigation bar of IntelliJ IDEA, choose .
- In the Settings dialog box, choose .
- On the Accounts page, set the AccessKey ID and the AccessKey secret, and click OK.

Note
The following section describes how to obtain the AccessKey ID and the AccessKey secret of an Alibaba Cloud account:
- If you already have an Alibaba Cloud account, click Get existing AK/SK on the Accounts page. The logon page of Alibaba Cloud appears. After you log on to the system by using your Alibaba Cloud account, you are directed to the Security Management page. On this page, obtain the AccessKey ID and the AccessKey secret of your account.
- If you do not have an Alibaba Cloud account, click Sign up on the Accounts page. On the page that appears, create an Alibaba Cloud account. Then, obtain the AccessKey ID and the AccessKey secret of the account by using the preceding method.
Step 3: Configure and start the CNKIT agent
- Start IntelliJ IDEA. In the top menu bar of IntelliJ IDEA, choose .
- In the Settings dialog box, choose .
- On the CNKIT page, configure the required parameters.
Parameter Description KubeConfig The kubeconfig file that is used to access a Kubernetes cluster. Operation - Start: starts the local CNKIT agent and connects to a Kubernetes cluster corresponding to kubeconfig.
- Stop: stops the local CNKIT agent.
One-click Access After the CNKIT agent is started, click One-click Access. Then, the CNKIT page appears. - Click OK to save the configurations. In this case, you do not need to configure the preceding parameters again.