Halaman ini belum tersedia dalam bahasa lokal Anda. Kami berusaha keras untuk menambahkan lebih banyak versi bahasa. Terima kasih atas dukungan Anda.

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
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
On this page

Deploying an Application with a Custom Kubernetes Cluster

Updated on 2025-02-08 GMT+08:00

This section introduces how to deploy an application in a Kubernetes cluster with a manifest file defining Kubernetes objects. In this way, self-built or third-party Kubernetes clusters can be deployed.

Prerequisites

A custom cluster is available.

Procedure

  1. Obtain the kubeconfig file.

    • Your Kubernetes cluster is used as an example.

      For details, see Configure Access to Multiple Clusters.

    • Example of a CCE cluster
      1. Go to the console. In the upper left corner of the page, choose Service List > Containers > . Click the target cluster and click Bind next to EIP to bind the public IP address.

        NOTE:

        The CodeArts Deploy official resource pool and your Kubernetes cluster are not in the same VPC. Therefore, you can access the Kubernetes cluster only through an EIP.

      2. Click Configure next to kubectl in the Connection Information area. On the displayed page, click Download under Download the kubeconfig file to download the configuration file.
        NOTE:

        After the download is complete, a kubeconfig.json file is available.

  2. Create a Kubernetes endpoint.

    1. Log in to CodeArts Deploy.
    2. Click Create Application, enter basic information, click Next, select Blank Template, and click OK. The Deployment Actions page is displayed.
    3. Click All, search for Deploy a Custom Kubernetes Cluster, and click Add.
    4. Create an endpoint for accessing the Kubernetes cluster.

      Click Create to create a Kubernetes access point.

      After entering the information, click Verify and OK to check whether the endpoint is configured successfully.
      Table 1 Parameters

      Parameter

      Description

      Service Endpoint Name

      Name of the service endpoint.

      Kubernetes URL

      Set this parameter to the public API Server address in the custom cluster.

      Kubeconfig

      Copy all content in the kubeconfig.json file.

    5. Configure other required parameters as prompted to complete deployment over the public network with Kubernetes.
      Table 2 Parameters

      Parameter

      Description

      Kubernetes Service Endpoint

      Select the target Kubernetes access point. You can create and manage Kubernetes access points.

      kubectl Command

      Select the target kubectl command by referring to Command line tool (kubectl).

      Use Manifest File

      If this option is selected, you need to select the target manifest file for deployment. The file name must be suffixed with .yaml, .yml, or .json.

      Manifest File Source

      Select Artifact or Repo as the file source.

      Manifest file or folder

      This parameter is mandatory. Select a manifest file or folder to be deployed. Files must be suffixed with .yaml, .yml, or .json.

      Click . On the file selection page that is displayed, select a Manifest File to be deployed in Artifact. By default, the project cannot be changed. You can search for the manifest file by keyword or upload the local manifest file to the repository, click , refresh the repository file, and select a manifest file. Click .

      kubectl Command Parameters

      kubectl command parameters to be executed.

      If the kubectl Command is set to "patch", the -p and file path will be automatically added in the kubectl Command Parameters. The node, pod, and deployment are provided in the patch command.

      Take the deployment type as an example. To modify the deployment type, enter deployment deployment-test in Kubectl Command Parameters. The deployment is the kind, and the deployment-test is the name of the kind.

      Action Control

      Continue the task even if this action fails.

Kami menggunakan cookie untuk meningkatkan kualitas situs kami dan pengalaman Anda. Dengan melanjutkan penelusuran di situs kami berarti Anda menerima kebijakan cookie kami. Cari tahu selengkapnya

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback