Updated on 2026-09-15 GMT+08:00

Cluster Access Overview

Accessing a cluster means communicating with it and executing cluster management tasks. Resources (such as pods, Services, and Deployments) in a CCE Autopilot cluster are usually centrally managed and operated using specified tools and methods. The process of accessing a cluster involves interacting with the cluster through kubectl, CloudShell, X.509 certificates, or other tools for resource creation, configuration, monitoring, and debugging.

Cluster Access Methods

You can select an appropriate method to access a CCE cluster. The following table lists cluster access methods.

Table 1 Comparison between cluster access methods

Access Method

Pros

Cons

Applicable Scenario

Accessing a Cluster Using kubectl

  • High flexibility and comprehensive functions
  • Automated and batch operations
  • Manual configuration of the local environment and credentials
  • Credential management-based security

This method is intended for developers and O&M personnel for daily cluster management, such as resource creation, status monitoring, and debugging.

Accessing a Cluster Using CloudShell

  • Rapid cluster access, without the need of configuring the local environment
  • Integrated with the cloud platform, facilitating cross-service management
  • Coupled with the cloud platform, allowing only online operations
  • Only command line operations are allowed. This is somewhat limited compared to local tools like kubectl.

This method is suitable for scenarios where temporary access to a cluster is necessary, as it eliminates the need for local tool installation and configuration.

Accessing a Cluster Using an X.509 Certificate

  • High security, preventing attacks
  • Enhanced identity authentication and data encryption
  • Complex configuration that requires certificates, keys, and related permissions
  • Complex certificate management and update

This method is ideal for scenarios requiring secure service communication, identity authentication, and encryption.

Configuring API Server for a Cluster for Internet Access

  • Comprehensive remote access capabilities
  • Cross-region and global access
  • Security measures such as firewalls, encryption, and authentication need to be taken to minimize the risk of attacks on the API server exposed to the Internet.
  • Affected by bandwidth and latency, especially in global access

This method is ideal for managing clusters in cloud environments or across regions, particularly when access from multiple locations is required.