Updated on 2024-12-18 GMT+08:00

Connecting to a Cluster Using CloudShell

Scenario

You can use CloudShell to connect a cluster.

Permissions

When using kubectl in CloudShell, the kubectl permissions are determined by the login user.

Using CloudShell

CloudShell is a web shell used to manage and maintain cloud resources. CCE allows you to use CloudShell to connect to clusters and use kubectl in CloudShell to access clusters (by clicking the command line tool icon in Figure 1).

  • The kubectl certificate in CloudShell is valid for one day. You can reset the validity period by accessing CloudShell from the CCE console.
  • CloudShell can be used only after CoreDNS is installed in a cluster.
  • CloudShell cannot be used across accounts or in or sub-projects.
Figure 1 CloudShell
Figure 2 Using kubectl in CloudShell