☁️CodeArts Deploy Creation and Features

Ozan Timur
Huawei Developers
Published in
4 min readMay 31, 2024
CodeArts Deploy

Introduction

Hi everyone 👋, in this session we will talk generally about deploying service on Huawei Cloud CodeArts.

Features of deployment

CodeArts Deploy provides visualized and automatic deployment services. It has various deployment actions to help you make a standard deployment process, reduce deployment costs, and improve release efficiency.

👉 There are some features of CodeArts Deploy as following:

· Supports host (physical machine and VM) deployment and container deployment.

· Provides system templates such as Tomcat, SpringBoot, and Django for you to create tasks quickly. You can drag and drop atomic actions to orchestrate tasks flexibly.

· Supports multiple hosts in environment at the same time.

· Implements container deployment using Cloud Container Engine (CCE).

· Deploys microservice applications using ServiceStage.

· Saves custom templates to create applications at one click.

· Supports parameterized configuration, provides parameter types such as text, environment, and enumeration, and supports dynamic parameter replacement during application deployment.

These are some features of CodeArts Deploy but how does this service work? You can either manually upload artifacts or create a build task to save artifacts to Artifact or an image repository. CodeArts Deploy uploads the artifacts and installs them on a host or container.

Working system of CodeArts Deploy

Adding and Editing a Host Cluster

The Basic Resources page displays host clusters and Kubernetes clusters (available soon), to be deployed. You can create basic resources and import them to an application for deployment. A target host is the final deployment object. CodeArts Deploy deploys your resources such as artifacts to the target host in the environment. A proxy server is a computer used to provide access channels for other target hosts without public IP addresses. In CodeArts Deploy, proxy hosts are usually referred to as ECSs bound to public IP addresses unless otherwise specified.

In the target project, choose Settings > General > Basic Resources. The Host Cluster page is displayed.

Managing Host Cluster Page

After creating host, you can edit the host on this page:

· Adding a host: Click

in the Operation column of a cluster to add a host to the cluster.

· Editing a cluster: Click

in the Operation column of a cluster to modify the cluster name, execution host, and description.

· Deleting a cluster: Click

in the Operation column of a cluster, click Delete, and click OK.

Direct Host Connection

Direct host connection is suitable when EIP resources are abundant or only a few EIPs are required for project demo verification. EIPs are bound to servers for connecting official resource pools with the target hosts, as shown in the following figure.

General proxy model

Linux proxy

Use an ECS bound with an EIP as a proxy. During the deployment, the executed commands will be delivered to the proxy and forwarded to each target host through SSH. The hosts will be deployed in batches.

When executing a deployment application, the target host accesses the NAT gateway to pull the software package, as shown in the following figure.

Linux Proxy

Windows proxy

Use an ECS bound with an EIP as a proxy. During the deployment, the executed commands will be delivered to the proxy and forwarded to each target host through ports. The hosts will be deployed in batches.

Windows Proxy

Conclusion 🎉

We look at how to create a host cluster, features of CodeArts Deploy and proxy models. If you want to create a free project on CodeArts Service, look at my articles. There is free project for your use.

References 📜

--

--