On the top navigation bar, click Business Apps, and then select Applications from the App Management menu.
Click Create Application to enter the Basic Settings page. For information about configuring basic settings, see "Basic settings."
Click Next to enter the Application Configuration page. For information about application configuration steps and parameters, see "Application configuration."
Click Next to enter the Confirm Deployment page, and click Create. To modify the application, click Previous.
Table-1 Configuring basic settings
Parameter |
Description |
App Name |
Enter an application name, a string of 1 to 40 characters. The application name can contain lowercase letters, numbers, and hyphens (-). The application name must start with a lowercase letter and end with a lowercase letter or a number. Make sure the name of the application can indicate its purpose. For example, you can include a project name in the application name. |
Version |
Specify a version for the application. You can select a history version to roll back to during a rollback operation. As a best practice, use the version number of the released application package. If the application package does not have a version number, you can custom the version number based on the service's functions or release date. |
Application Group |
Select an existing application group or click Create Application Group to create a new one. For more information about creating application groups, see "Create an application group." |
Application Description |
Enter a description, a string of 0 to 128 characters. You can use the description to indicate the service's functions, purpose, or other information that facilitate application deployment. |
Software Package |
Select a software package type. Options include Container Image, Jar Package, War Package, and Helm Package, Legacy Package, and Front-end Resources Package.
|
Deployment Mode |
Select a deployment mode:
|
Resource Type |
Select the type of the resource where the application will be deployed. You can deploy a container application on a container cluster or an MCP cluster. If you deploy a container image, Helm package, Jar package, War package, or front-end resources package on a container cluster, the internal time of the container will be consistent with the time of the container cluster. If you deploy a container image, Jar package, War package, or front-end resources package on an MCP cluster, the internal time of the container will be consistent with the time of the MCP cluster. |
Type (traditional deployment) |
Select an application type:
NOTE: · The daemon supports deploying container applications for only the container image, JAR package, WAR package, front-end resources package. · The daemon does not support elastic scaling or grayscale upgrade. · Only stateless applications are supported if an MCP cluster is deployed. |
Resource Configuration (traditional deployment) |
Select container cluster resources. You can select Shared Cluster or Exclusive Cluster.
NOTE: If the application type is daemon and the resource type is shared cluster, you can choose to whether run the application on the control node.
|
Select Environment |
Select an existing environment. For information about creating an environment, see "Environment management." |
Select Resources |
|
Fixed IP |
Bind the IP address assigned during pod initialization to the application. |
· By default, restarting or upgrading a container instance managed by Kubernetes will cause the IP address of the corresponding pods to be reassigned. If you create a stateful application with a single pod in an exclusive cluster, the IP address assigned during pod initialization is bound to the pod. Users can access the application through the IP address even if the application is restarted or upgraded. · A stateful application with a fixed IP address does not support elastic scaling. · The fixed IP option appears only if you deploy applications on a container cluster in calico mode. |
Table-2 Configuring basic settings for deploying a container application
Parameter |
Description |
Configuration Mode |
When the software package type is container image, and the resource is configured as an exclusive cluster, the following configuration modes are supported:
If a service requires an initial container, configure an initial container when you edit the YAML file for the service. A service container can use only storage volumes of pods, and an initial container can use only storage volumes of service containers. When you configure storage volumes for a pod, create storage volumes for service containers. When you configure storage volumes for a service container, create storage volumes for the initial container. For more information about YAML deployment for an application that requires an initial container, see "YAML application deployment example (with initial container configuration)." |
Image Installation Package Application Installation Package |
Select an installation package or image from the private or public repository, or upload an installation package or image as described in "About application repository service" and "About image repository service" |
Environment Variables |
Configure user-defined environment variables for containers. You can use the environment variables to edit the configuration of containers after application deployment. User-defined environment variables cannot be the same as system-defined environment variables as shown in Table-3. You can configure user-defined environment variables by using the following methods:
|
Container Flavor |
Specify the startup limit and operation limit.
|
Label |
Create a label for identifying a group of applications. |
Nginx Version |
Specify an Nginx version. Only version 1.20 is supported in the current software version. This parameter appears only when you deploy a front-end resources package. |
Enable HTTPS |
Choose to whether to enable HTTPS. If you enable HTTPS, you must upload a pair of public key certificate and private key certificate. This parameter appears only when you deploy a front-end resources package. |
Public Key Certificate/Private Key Certificate |
Upload a public key certificate or private key certificate: 1. Click upload. 2. Drag a certificate to the window or click click to upload to upload a certificate. |
Nginx Configuration |
Upload a configuration file: 1. Click upload. 2. Drag a configuration file to the window or click click to upload to upload a configuration file. |
Table-3 System-defined environment variables
Software package type |
Environment variables |
WAR package |
|
JAR package |
|
Container image |
|
Click Show Advanced Settings to configure advanced settings.
Table-4 Configuring advanced settings for deploying a container application
Parameter |
Description |
|
Service Access Configuration |
Configure the access mode and port mapping |
To add more port mappings click the Add icon. |
Labels |
Create a label for identifying a group of services. |
|
Sticky Sessions |
Choose to whether to enable sticky sessions. If you enable this option, a pod will respond to all requests from the same IP address before a session times out. |
|
Select LB |
Select an existing LB or create a new LB. This parameter is available when the resource type is container cluster. |
|
Configure LB Parameters |
Configure the southbound and northbound LBs, LB IDs, and the LB tenant IDs. A service can use an LB through the configured parameters. This parameter is available when the resource type is container cluster. |
|
Routes for Container Access |
Configure access routes. For access routes to take effect, first configure service access settings (see "Add a service").
NOTE: Access routes do not need to be configured for applications deployed on an exclusive cluster. |
|
App Access Path |
Enter a path used to access the application. After an application is deployed, it can be accessed through IP (domain name):port number/path. This parameter can be configured when the resource type is container image, JAR package, WAR package, or front-end resources package, |
|
Startup Command |
Specify the commands required by container startup and operation, |
|
Storage Volumes |
Mount additional storage resources to the container in scenarios that require persistent storage and high disk I/O, You must first create storage volumes. For information about creating a storage volume, see "Configure a volume." This parameter is unavailable if the resource type is MCP cluster.
|
|
ConfigMaps |
Select an existing ConfigMap for use by the application.
|
|
Secrets |
Select an existing secret for use by the application.
|
|
Node Affinity |
Configure a node affinity rule that specifies on which nodes a pod is allowed to be scheduled. A node affinity rule can be a required one or a preferred one. |
|
Pod Affinity/Pod Anti-Affinity |
Configure a port affinity or anti-affinity rule that specifies which pods with workloads can be or cannot be deployed to the same topology domain. Use affinity to restrict an instance to certain nodes and distribute instances to different topologies. |
|
Initial Container |
Configure an initial container to define basic configuration for service containers.
|
|
Differentiated Configuration |
Configure different image installation packages and environment variables for different member clusters.
|
|
Health Check |
Identifies whether containers and services are operating correctly.
The following check methods are available:
General parameters include:
|
|
Container Privileges |
Configure container privileges.
|
|
Auto Scaling |
Configure auto scaling thresholds. The system will perform auto scaling (increase or reduce the number of pod instances) when the CPU usage or memory usage reaches the threshold. After deployment, you can modify auto scaling thresholds through the application space. |
|
Application Analyzer |
Monitors the system operating state, including infrastructure, microservices, basic middleware, service gateways, and links and provides metric analysis tools. This parameter can be configured if the application diagnostics cloud service is deployed.
|