Add application configuration

Add a ConfigMap

  1. On the top navigation bar, click Business Apps, and then select ConfigMaps from the App Management menu.

  1. On the ConfigMaps tab, click Add ConfigMap.

  1. Configure ConfigMap parameters as needed, and then click OK.

Table-1 Configuring ConfigMap parameters

Parameter

Description

Name

Enter a name for the ConfigMap.

Version

Enter a version number.

Cluster

Select a container cluster. The cluster must be the one where applications to use this ConfigMap will be deployed. You can select a shared cluster, exclusive cluster, or MCP cluster.

Application Group

Select an application group. The application group must contain the applications to use this ConfigMap.

Description

Enter a description.

Labels

Configure labels. The labels are used for managing ConfigMaps.

Data

A ConfigMap defines the data used in applications through key-value pairs, which are mounted in applications in the form of a catalog. A key corresponds to a file name, and a value corresponds to the file content. The directory path must be specified when an application is created.

  • Manually Specify: Click Add to configure key-value pairs manually.

  • Key—Enter a key meaningful to containers.

  • Value—Enter a key value.

  • Upload File: Click Upload to upload one or more files. The total size of uploaded files cannot exceed 1 MB. The file name acts as the key, and the file content acts as the value. The txt, conf, yaml, json, and properties file formats are supported.

 

Add a secret

  1. On the top navigation bar, click Business Apps, and then select ConfigMaps from the App Management menu.

  1. On the Secrets tab, click Add Secret.

  1. Configure secret parameters as needed, and then click OK.

Table-2 Configuring secret parameters in a visual mode

Parameter

Description

Name

Enter a name for the secret.

Cluster

Select a container cluster. The cluster must be the one where applications to use this secret will be deployed.

Application Group

Select an application group. The application group must contain the applications to use this secret.

Tags

Configure tags. The tags are used for managing secrets.

Tag Creation

The secret key used in applications is defined through key-value pairs, which are mounted in applications in the form of a catalog. A key corresponds to a file name, and a value corresponds to the file content. The directory path must be specified when an application is created.

  • Manually Specify: Click Add to configure key-value pairs manually for resources to be encrypted.

  • Key—Enter a key meaningful in containers.

  • Value—Enter a key value.

  • Upload File: Click Browse to upload a TXT, CONF, or YAML file not larger than 1 MB. Use the key as the file name, and enter the value of the key in the file.

Auto Transcoding

Select whether to automatically encode the secret data by using Base64. If you do not enable auto transcoding, you must enter the secret data that has been encoded by using Base64.

 

Table-3 Configuring secret parameters in YAML mode

Parameter

Description

Cluster

Select a container cluster. The cluster must be the one where applications to use this secret will be deployed.

Application Group

Select an application group. The application group must contain the applications to use this secret.

Select File

Click Browse to upload a TXT, CONF, or YAML file not larger than 1 MB. Use the key as the file name, and enter the value of the key in the file. For the format of the file content, see "YAML secret deployment example."