Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

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

Adding a Proxy to a Host Cluster for CodeArts Deploy

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

This section describes how to add a proxy host to a host cluster.

Prerequisites

  • A host cluster is available, and you have the permission to add hosts to the cluster.
  • A host bound with a public IP address is available. (If you do not have a host, purchase one by referring to Purchasing an ECS.)

Adding a Target Host

  1. Go to the Basic Resources page.
  2. Click the name of the desired cluster to go to the Target Hosts tab page.
  3. Click Add Host and select Adding IP for Add Hosts by.
  4. Select Proxy for Host Connection Mode to add a proxy host. Enter the following information and click OK.

    Table 1 Parameters of the proxy host (Linux)

    Parameter

    Mandatory

    Description

    Host Name

    Yes

    Enter a user-defined proxy host name.

    Enter 3 to 128 characters. Use digits, letters, hyphens (-), underscores (_), and periods (.).

    IP

    Yes

    Enter the public IP address bound to the proxy host. IPv4 or IPv6 addresses are supported.

    OS

    Yes

    The default value is the OS of the current host cluster and cannot be changed.

    Configure the target host by referring to Configuring a Linux Host to ensure successful connectivity verification.

    Authorization

    Yes

    Select a password or key for authentication as required.

    • If you select Password, the Username and Password are displayed. Take ECS as an example. Enter the ECS username and password.
    • If you select Key, the Username and Key are displayed. For details about how to generate and obtain a key, see Obtaining the Linux key.

    SSH Port

    Yes

    Port 22 is recommended. You may customize the port number.

    Install AOM ICAgent for metric monitoring, log query, and alarm functions on Huawei Cloud Linux hosts. Configure an agency before installation.

    No

    If the checkbox is selected, you can install and use AOM-ICAgent on your hosts for free for metric monitoring, log query, and alarm functions. ICAgent applies only to Huawei Cloud Linux hosts. Before installing ICAgent, configure an agency by referring to Creating and Using an Agency.

    Table 2 Parameters of the proxy host (Windows)

    Parameter

    Mandatory

    Description

    Host Name

    Yes

    Enter a user-defined proxy host name.

    Enter 3 to 128 characters. Use digits, letters, hyphens (-), underscores (_), and periods (.).

    IP

    Yes

    Enter the public IP address bound to the proxy host. IPv4 or IPv6 addresses are supported.

    OS

    Yes

    The default value is the OS of the current host cluster and cannot be changed.

    Configure the target host by referring to Configuring the Host Running Windows to ensure successful connectivity verification.

    Authorization

    Yes

    Windows proxies support only password authentication. Take ECS as an example. Enter the ECS username and password.

    Winrm Port

    Yes

    Port 5986 is recommended. You may customize the port number.

  5. To add your Huawei Cloud ECS as the target host or proxy host, click Add Host, and select Importing ECS for Add Hosts by.

    CAUTION:

    You should meet the following requirements to import purchased ECS:

    • ECS is running.
    • ECS and host cluster have the same OS.
    • Proxy host has a public IP (proxy mode) when using official resource pool.
    • Host is not the imported target host.

    In the proxy mode, you need to configure the proxy host before using the target host.

  6. Verify the host connectivity.

    After the host is added, the system automatically verifies the connectivity. If the connectivity verification fails, click Failed and rectify the fault based on the failure cause displayed in the dialog box or click View Solution.

Configuring a Linux Proxy

Required Resources

You have configured the following resources in a Virtual Private Cloud (VPC):

Resource Type

Supported Resource Specifications

Quantity

Description

EIP

Bandwidth ≥ 5 Mbit/s

2

1. When creating a proxy, you need to add an ECS bound to an elastic IP address as the proxy.

2. When creating an SNAT gateway, you need to bind an EIP to it.

Procedure

  1. Enable the SSH forwarding function of the proxy.

    • If the proxy mode is used, run the following command to check whether AllowTcpForwarding has been enabled for SSH on the proxy:
      grep AllowTcpForwarding "/etc/ssh/sshd_config"
    • If the value is no, set it to yes and run the following command to restart the sshd service:
      service sshd restart

  2. Configure SNAT for the proxy.

    1. Click in the upper left corner and choose Networking > to access the console.
    2. On the NAT Gateway console, click Buy Public NAT Gateway.
    3. Enter related information and click Next.
    4. After the NAT gateway is created, return to the NAT gateway list and click the target NAT gateway.
    5. On the NAT gateway details page, click the SNAT Rules tab, click Add SNAT Rule, configure required parameters, and click OK.
    6. Check whether the SNAT rule is added.

  3. Check routing policies.

    1. Go to the console. In the upper left corner of the page, click and choose Networking > to access the network console.
    2. Choose Virtual Private Cloud > Route Tables and click the target route table.

      Check the route information.

      Table 3 Description of route information

      Route Information

      Description

      Destination

      Destination CIDR block. The default value is 0.0.0.0/0. Select the IP address for the access environment based on project requirements.

      IP Addresses

      Click to view detailed information about the IP addresses.

      Next Hop Type

      Set it to NAT gateway.

      Next Hop

      Set it to the public NAT gateway that you have added the SNAT rule to.

      Type

      System: A system route is automatically added by the system and cannot be modified or deleted.

      Custom: A user-defined route is added by a user to direct traffic to a desired destination, and can be modified and deleted. The destination of a custom route cannot overlap with that of a system route.

      Description

      Description of the route.

      Operation

      You can modify and delete routes.

Configuring a Windows Proxy

Required Resources

  • A Windows host is available.
  • The network connection between the proxy and hosts is normal.

Procedure

  1. Log in to the proxy, open PowerShell, and run the netsh command. Replace the parameters based on the parameter descriptions.

    netsh interface portproxy add v4tov4 listenaddress=${proxy_ip}  listenport=${proxy_port}  connectaddress=${host_ip}  connectport=${host_port}

    For IPv6 hosts, replace v4tov4 in the following command with v6tov6.

    Table 4 Parameters

    Parameter

    Description

    ${proxy_ip}

    Private IP address of the proxy.

    ${proxy_port}

    Listening port of the proxy, for example, 54.

    ${host_ip}

    Private IP address of the host.

    ${host_port}

    Port of the host. Generally, the port is 5986.

  2. Enable the proxy listening port, that is, ${proxy_port} in the preceding command. For details, see Configuring a Security Group.

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback