Easily Switch Between Product Types

You can click the drop-down list box to switch between different product types.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Creating a Kubernetes Cluster

Updated on 2024-01-26 GMT+08:00

Context

This section describes how to quickly create a CCE cluster. In this example, the default or simple configurations are in use.

Creating a Cluster

  1. Log in to the CCE console.

    • If you have not created a cluster, a wizard page is displayed. Click Create under CCE cluster.
    • If you have created a cluster, choose Clusters from the navigation pane and click Create.

  2. On the Configure Cluster page, configure cluster parameters.

    In this example, a majority of parameters retain default values. Only mandatory parameters are described. For details, see Table 1.
    Table 1 Parameters for creating a cluster

    Parameter

    Description

    Basic Settings

    *Cluster Name

    Name of the cluster to be created. A cluster name contains 4 to 128 characters starting with a lowercase letter and not ending with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.

    * Enterprise Project

    This parameter is displayed only for enterprise users who have enabled Enterprise Project Management.

    * Cluster Version

    Choose the latest version.

    * Cluster Scale

    Maximum number of worker nodes that can be managed by the cluster. If you select 50 nodes, the cluster can manage a maximum of 50 worker nodes.

    *High Availability

    The default value is Yes.

    Network Settings

    * Network Model

    Retain the default settings.

    *VPC

    VPC where the cluster will be located.

    If no VPC is available, click Create VPC to create one. After the VPC is created, click refresh.

    * Master Node Subnet

    Subnet where master nodes of the cluster are located.

    * Container CIDR Block

    Retain the default value.

    * IPv4 Service CIDR Block

    CIDR block for Services used by containers in the same cluster to access each other. The value determines the maximum number of Services you can create. The value cannot be changed after creation.

  3. Click Next: Add-on Configuration. Retain the default settings.
  4. Click Next: Confirm. After confirming that the cluster configuration information is correct, select I have read and understand the preceding instructions and click Submit.

    It takes about 6 to 10 minutes to create a cluster.

    The created cluster will be displayed on the Clusters page, and the number of nodes in the cluster is 0.

Creating a Node

After a cluster is created, you need to create nodes in the cluster to run workloads.

  1. Log in to the CCE console.
  2. Click the created cluster.
  3. In the navigation pane, choose Nodes. Click Create Node in the upper right corner and set node parameters.

    The following describes only important parameters. For other parameters, retain the defaults.

    Compute Settings

    • AZ: Retain the default value.
    • Node Type: Select Elastic Cloud Server (VM).
    • Specifications: Select node specifications that fit your business needs.
    • Container Engine: Select a container engine as required.
    • OS: Select the operating system (OS) of the nodes to be created.
    • Node Name: Enter a node name.
    • Login Mode:
      • If the login mode is Key pair, select a key pair for logging to the node and select the check box to acknowledge that you have obtained the key file and without this file you will not be able to log in to the node.

        A key pair is used for identity authentication when you remotely log in to a node. If no key pair is available, click Create Key Pair..

    Storage Settings

    • System Disk: Configure disk type and capacity based on your requirements. The default disk capacity is 50 GiB.
    • Data Disk: Configure disk type and capacity based on your requirements. The default disk capacity is 100 GiB.

    Network Settings

    • VPC: Use the default value, that is, the subnet selected during cluster creation.
    • Node Subnet: Select a subnet in which the node runs.
    • Node IP: IP address of the specified node.
    • EIP: The default value is Do not use. You can select Use existing and Auto create.

  4. At the bottom of the page, select the node quantity, and click Next: Confirm.
  5. Review the node specifications, read the instructions, select I have read and understand the preceding instructions, and click Submit.

    It takes about 6 to 10 minutes to add a node.

    The created node will be displayed on the Nodes page.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback