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

Show all

Applications Created Through App Designer

Updated on 2023-12-07 GMT+08:00

If the application in CCE 1.0 version is created through App Designer, follow the steps in this section to migrate the application to CCE 2.0. In CCE 2.0, use the custom Helm chart to create applications. For more information, see Chart Management.

Procedure

  1. Log in to the console of CCE 1.0. In the navigation pane, click App Manager. Then, click the name of the application to be migrated to go to the details page. Obtain Component Name and Service Name.
  2. Connect to a cluster. For details, see Connecting to a Cluster Through kubectl.
  3. Run the following commands on the kubectl client to obtain the YAML files related to the application.

    kubectl get rc new-appcomponent-1-11d3 -o yaml > new-appcomponent-1-11d3.yaml

    kubectl get svc new-port-3 -o yaml > new-port-3.yaml

    In the preceding commands, replace new-appcomponent-1-11d3 and new-port-3 with the values obtained in 1.

  4. Edit the new-appcomponent-1-11d3.yaml file by deleting the lines in bold and modifying the lines in Italic.

    apiVersion: v1
    kind: ReplicationController
    metadata:
      annotations:
        cce/app-createTimestamp: 2018-04-19-11-39-27
        cce/app-description: ""
        cce/app-updateTimestamp: 2018-04-19-11-39-27
      creationTimestamp: 2018-04-19T11:37:17Z
      generation: 1
      labels:
        cce/appgroup: app-design
        name: new-appcomponent-1-11d3
        rollingupdate: "false"
      name: new-appcomponent-1-11d3
      namespace: default
      resourceVersion: "8325781"
      selfLink: /api/v1/namespaces/default/replicationcontrollers/new-appcomponent-1-11d3
      uid: 039ada96-43c6-11e8-8f34-fa163e738aa3
    spec:
      replicas: 1
      selector:
        cce/appgroup: app-design
        name: new-appcomponent-1-11d3
        rollingupdate: "false"
      template:
        metadata:
          annotations:
            scheduler.alpha.kubernetes.io/affinity: '{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"failure-domain.beta.kubernetes.io/zone","operator":"NotIn","values":[""]}]}]}}}'
          creationTimestamp: null
          labels:
            cce/appgroup: app-design
            name: new-appcomponent-1-11d3
            rollingupdate: "false"
        spec:
          affinity:
            nodeAffinity:
              requiredDuringSchedulingIgnoredDuringExecution:
                nodeSelectorTerms:
                - matchExpressions:
                  - key: failure-domain.beta.kubernetes.io/zone
                    operator: NotIn
                    values:
                    - ""
          containers:
          - image: 10.125.1.108:6443/test/apache-php:latest -->Change it to the image address of the later CCE version
            imagePullPolicy: Always
            name: new-container-2-11d3f16
            ports:
            - containerPort: 3333
              protocol: TCP
            resources: {}
            securityContext:
              privileged: true
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
          dnsPolicy: ClusterFirst
          imagePullSecrets:
          - name: myregistry    ----->  Change it to default-secret
          restartPolicy: Always
          schedulerName: default-scheduler
          securityContext: {}
          terminationGracePeriodSeconds: 30
    status:
      availableReplicas: 1
      fullyLabeledReplicas: 1
      observedGeneration: 1
      readyReplicas: 1
      replicas: 1

  5. Open the new-port-3.yaml file, and delete the lines in bold.

    apiVersion: v1
    kind: Service
    metadata:
      creationTimestamp: 2018-04-19T11:37:17Z
      labels:
        cce/appgroup: app-design
        name: new-appcomponent-1-11d3
      name: new-port-3
      namespace: default
      resourceVersion: "8325766"
      selfLink: /api/v1/namespaces/default/services/new-port-3
      uid: 039c918f-43c6-11e8-8f34-fa163e738aa3
    spec:
      clusterIP: 10.247.145.136
      externalTrafficPolicy: Cluster
      ports:
      - name: new-port-30
        nodePort: 31471
        port: 3333
        protocol: TCP
        targetPort: 3333
      selector:
        cce/appgroup: app-design
        name: new-appcomponent-1-11d3
      sessionAffinity: None
      type: NodePort
    status:
      loadBalancer: {}

  6. Connect the kubectl client to the CCE cluster of the latest version. For details, see Connecting to a Cluster Through kubectl.
  7. Run the following commands to create the application again:

    kubectl create -f new-appcomponent-1-11d3.yaml

    kubectl create -f new-port-3.yaml

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