Bu sayfa henüz yerel dilinizde mevcut değildir. Daha fazla dil seçeneği eklemek için yoğun bir şekilde çalışıyoruz. Desteğiniz için teşekkür ederiz.

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

Creating a Microservice Component

Updated on 2023-06-25 GMT+08:00

ServiceStage provides a microservice framework that enables you to develop and deploy applications on the cloud. It provides code framework generation, service registry and discovery, load balancing, and service reliability including fault tolerance, circuit breaker, rate limiting, and service degradation. This section describes how to create a static microservice application component using ServiceStage. For details about how to deploy a component, see Deploying a Component.

Prerequisites

  1. An application has been created because components can only be added to applications. For details, see Creating an Application.
  2. If you create a microservice component based on a source code repository or template, create repository authorization first. For details, see Authorizing a Repository.
  3. If you create a microservice component based on a software package, upload the software package to the OBS bucket.

    Upload the software package to the OBS bucket. For details, see Uploading a File.

Procedure

  1. Log in to ServiceStage and choose Application Management > Application List.
  2. Select the created application and click Create Component in the Operation column.
  3. Select Custom for Configuration Method and select Microservice as the component type, and click Next.
  4. Select a runtime system and click Next.

    Different frameworks support different runtime systems. For details, see Microservice Components.

  5. Selecting a framework/service mesh

    For details about the framework/service mesh, see Microservice Components.

  6. Select whether you want to save the preceding configurations as a template for future use.

    • If you select this function, enter a template name. Then, go to 7.
    • If you do not select this function, go to 7.

  7. Check whether Docker is selected in 4.

    • If yes, click Next and go to 8.
    • If no, click Next and go to 9.

  8. Create a Docker component.

    1. Enter a component name.
    2. Create a component.
      • Click Create Now to create a static component.
      • Click Create and Deploy. The deployment page is displayed. For details, see Deploying a Component.
    3. No further action is required.

      After the component is created, you can view the component status in the Component List on the Overview page.

  9. Configure component information according to the following table. Parameters marked with an asterisk (*) are mandatory.

    Table 1 Basic component information

    Parameter

    Description

    *Name

    Component name.

    *Software Package

    • If you select Source code repository, create authorization by referring to Authorizing a Repository and set the code source.
    • If you select JAR package/WAR package/ZIP package, set Upload Method.

      Upload the software package to the OBS bucket. For details, see Uploading a File.

      NOTE:
      • Select JAR package if Java8 is selected for Select Runtime System.
      • Select WAR package if Tomcat8 is selected for Select Runtime System.
      • Select ZIP package if Nodejs8, Php7, or Python3 is selected for Select Runtime System.
    • Set the following parameters if Template is selected.
      1. ServiceStage provides template frameworks. You can select one to quickly create an application component.
      2. Set Code Archive. See Authorizing a Repository to create authorization and set Username/Organization and Repository.
      NOTE:

      This parameter is invalid if you select Mesher or Spring Cloud for Select Framework/Service Mesh in 5.

    *Python Framework

    This parameter is mandatory if you select Python3 for Select Runtime System in 4.

    Set Module Name and Variable Name for all frameworks except Python3-Django.

    • If the entry point file of the Python project is server.py, Module Name is server.
    • If the application function of the server.py entry point file of the Python project is app=get_wsgi_application(), Variable Name is app.

    Build

    • If Source code repository or Template is selected for Software Package, set Build parameters to build the application component.

      Set Command and Organization, and select a cluster based on service requirements.

      You can also specify Node Label to deliver the build job to a fixed node based on the node label. For details about how to add a node label, see Adding a Node Label.
      NOTICE:

      If Custom command is selected for Command:

      Exercise caution when inputting sensitive information in the echo, cat, or debug command, or encrypt sensitive information to avoid information leakage.

    • (Optional) If JAR package, WAR package, or ZIP package is selected for Software Package, set Build parameters to build the application component.

      Set Organization and CPU Architecture, and select a cluster based on service requirements.

      You can also specify Node Label to deliver the build job to a fixed node based on the node label. For details about how to add a node label, see Adding a Node Label.

  10. Create a component.

    • Click Create Now to create a static component.
    • Click Create and Deploy. The deployment page is displayed. For details, see Deploying a Component.

    After the component is created, you can view the component status in the Component List on the Overview page.

Sitemizi ve deneyiminizi iyileştirmek için çerezleri kullanırız. Sitemizde tarama yapmaya devam ederek çerez politikamızı kabul etmiş olursunuz. Daha fazla bilgi edinin

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback