• Cloud Container Engine

cce
  1. Help Center
  2. Cloud Container Engine
  3. User Guide 2.0
  4. Getting Started
  5. Creating a Containerized Application

Creating a Containerized Application

A containerized application is a group of instances running on CCE. CCE provides third-party application hosting to help you manage the full lifecycle from deployment to O&M. This section describes how to use a container image to create a containerized application.

Prerequisites

  • A cluster has been created and a node has been added to the cluster.
  • An elastic IP address has been bound to the node and the elastic IP address of the node has been obtained.

Procedure

  1. Log in to the CCE console. In the navigation pane, choose Application Management.
  2. Click Create Application, and set Select Application Type to Stateless Applications.
  3. Set the following parameters as specified, and retain the default settings for other parameters:

  4. Click Next. Click Add Container. On the Third-party Images tab page, set Authenticate Secret to No and Image Address to nginx:latest, indicating that the latest Nginx version is selected from the third-party images. Click OK.
  5. Retain the default settings for the image parameters, and click Next.
  6. Click Add Access Mode, and set the parameters listed in Table 1 as specified.

    NOTE:

    In this example, the Nginx application will be accessible from the Internet by using the elastic IP address.

    Table 1 Setting application access parameters

    Parameter

    Description

    Service Name

    Name of the application that can be accessed externally. Set this parameter to nginx.

    Access Mode

    Set this parameter to External access.

    Access Type

    Set this parameter to EIP.

    Protocol

    Set this parameter to TCP.

    Container Port

    Port on which the containerized application listens. Set this parameter to 80 for the Nginx image.

    Access Port

    Select Automatically generated.

    An access port number will be automatically generated and allocated.

  7. Click OK and then Next. Skip the advanced settings, and click Create Now.

    To view the running application in the application list, click Back to Application List.

  8. Access the Nginx application.

    1. In the navigation pane, choose Application Management. Copy the external access address of the Nginx application.
      Figure 1 External Access Address
    2. Enter the external access address in the address box of the browser to connect to the application. Once you have successfully accessed the Nginx application, the welcome page shown in Figure 2 will be displayed.
      Figure 2 Accessing the Nginx application