tencent cloud

Feedback

Deploying a General Application

Last updated: 2024-01-09 12:00:35

    Overview

    This document describes how to deploy a JAR package of the JAVA Demo sample application on Tencent Cloud Elastic Microservice and enable its public network access.

    Prerequisites

    Create an environment and application.

    Directions

    Step 1. Get the Demo

    This document uses the demo application developed in Java Spring Boot as an example. Click here to download the JAR package.

    Step 2. Deploy the Application

    1. On the Application management page, select the target application and click Deploy to new environment.
    
    
    
    2. On the Deploy Application page, configure the relevant parameters as needed.
    
    
    
    Upload Package: upload your package.
    Release Environment: select the environment just created.
    If you need to configure other advanced options for your application, please see Creating and Deploying Application.
    3. Click Deploy.

    Step 3. Access the Application

    After the deployment, you need to create a configuration for it in the CLB gateway for internet access.
    1. In the TEM console, click CLB Gateways in the left sidebar.
    2. Click Create and enter the gateway configuration. Choose the correct Environment.
    
    
    
    Network Type: Select Public Network. To configure an intra-environment access, see Creating and Deploying Application.
    Load balancer: Create one automatically or use an existing CLB.
    Protocol & port: HTTP:80 and HTTPS:443 are supported, and HTTPS domain names can be bound to certificates. Select HTTP:80 for the Demo application.
    IP version: Options include IPv4 and IPv6 NAT64.
    Forwarding configuration:
    Domain name: Choose an existing domain name. If it’s not specified, a random IPv4 IP is assigned by default. For the demo application, use the assigned default IP address.
    Path: It defaults to “/”. Configure it as needed.
    Backend application: Select the demo application.
    Application port: For the demo application, use port 8201.
    Server certificate: If HTTP is selected, you need to select a server certificate. If existing certificates are not suitable, you can create one.
    3. Click Confirm to complete the configuration. You can then check the IP for internet access in the list of CLB gateways.
    
    
    
    4. Enter the public IP of the application in a browser. If the following result is returned, the application is successfully deployed.
    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