tencent cloud

Feedback

Creating and Deploying Application

Last updated: 2022-07-01 15:25:14

    Overview

    This document describes how to create an application and deploy it in the TEM console.

    Prerequisites

    1. You have already created an environment.
    2. You have added environment resources (choose log service, storage service, or registry as needed).

    Directions

    1. Log in to the TEM console.
    2. In the left sidebar, click Application Management to go to the application list page and select a deployment region for your application.
    Region AZs Supported for Deployment
    Guangzhou Zones 3, 4, and 6
    Shanghai Zones 2, 3, 4, and 5
    1. Click Create to access the New application page and enter the application information.

      • Name: enter the application name, which can contain up to 45 lowercase letters, digits, and hyphens and cannot start or end with a hyphen.
      • Programming Language: select your programming language.
      • Package Upload Method: select a package upload method. The Java language supports uploading images, JAR packages, and WAR packages, while other languages only support uploading images. If you select JAR package or WAR package, TEM will automatically build a container image for you and push it to your personal container image repository created by TEM.
    2. Click Submit and select OK in the pop-up window to enter the application deployment page. If you select Cancel, you can click Deploy to New Environment in the application list to complete the application deployment later.

    3. On the application deployment page, configure the relevant parameters according to the specific conditions of your application.

      The parameters are described as follows:

    Parameter Description
    Release Environment Select the environment where the application is located. If there are no suitable environments, you can create one on the Environment page as instructed in Creating Environment.
    JDK Version Select the JDK version, which can be KonaJDK 11(recommend),OpenJDK 11,KonaJDK 8 or OpenJDK 8.
    Upload Package/Image Upload your package or image or download the demos in the console to deploy them and try out all the features of TEM.
    Version Number Set the application version number. You can choose to enter the version number or click Use Timestamp as Version Number to use the timestamp as the application version number.
    Version Description Enter the version description.
    Start Parameter Set the start parameter.
    Note:

    If your application is in Java and associated with a registry, TEM will be able to automatically inject the registry information. For more information, please see Service Registration and Discovery.

    1. (Optional) You can set the following advanced options as needed:
    Parameter Required Description
    Resource Configuration Yes You can set a number manually or set an auto scaling rule to automatically scale.
    Access Configuration No
  • Access Method: access within the environment. The public network access can be configured globally in Environment. For more information, please see Configuring Application Access and Routing.
  • Protocol: TCP and UDP protocols are supported. When public network/private network CLB instances are used, TCP and UDP protocols cannot be used together.
  • Application Management No Configure processing tasks to be executed before and after the application process, for example, environment preparation and application exit.
    Configuration Setting No Configuration usage and management.
    Environment Variables No Configure environment variables.
    Health Check No
  • Liveness check: check whether an application instance is running properly. If not, restart the instance.
  • Readiness check: check whether an application instance is ready. If not, stop forwarding traffic to the instance.
  • For operation details, see Health Check.
    Persistent Storage No Persistent Storage: provide storage for the container. Currently, CFS is supported, which needs to be mounted to the specified path of the container.
  • Data Volume: add the CFS storage resources associated in Adding Environment Resource.
  • Mount Target: select the target path to mount the data volume added in this step and enter the version description.
  • Security Group No You can configure a security group rule to allow or reject the outbound and inbound traffic of instances in the security group. If you need to open other ports for your business, you can create a security group accordingly.
    Log Configuration No You can enable Persistent storage in CLS. This supports standard output stdout and * configuration paths such as /logs/*, which should be separated by commas. Standard output is used by default.
    1. Click Submit to complete the application deployment.
    2. For microservice applications, the steps to deploy consumer and server applications are similar to steps 3–7.

    Application Access

    TEM provides two ways of access: intra-environment access and public network access.

    • Intra-environment access: microservices in the same environment can call each other through the registered service names. Service registration and discovery based on registries such as Consul and Eureka as well as service discovery based on Kubernetes are supported.
    • Public network access: click View Details under the target environment block and create public network CLB instances and HTTP/HTTPS forwarding rules on the Access Management page to access the application.

    Taking public network access as an example, the steps are as follows:

    1. Create a public network access route as instructed in Configuring Application Access and Routing.

    2. You can view the public IP of the application under Access Management on the environment details page.

    3. Enter the following URL in a browser:

      <public network access address/domain name>+<path>
      

      For example, if the following result is returned after you enter http://xx.xx.xx.xx/ping-provider, the application is deployed successfully.

      Hello World!
      
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support