Help Center/ ServiceStage/ User Guide/ Component Management/ Managing VM-Deployed Component Configurations/ Managing Application Settings of a VM-Deployed Component
Updated on 2025-08-05 GMT+08:00

Managing Application Settings of a VM-Deployed Component

ServiceStage provides configuration management. By creating a unified configuration file, you can fill the system information (such as the IP address, port number, database address, and application name associated with the environment) of the component environment and application in the variables corresponding to the configuration file. This implements multi-environment component release and upgrade with one-time configuration through file mounting.

This section describes how to manage component configuration files.

Binding a Configuration File

  1. Choose Application Settings > Add Configuration File.
  2. Set the configuration file parameters by referring to the following table.

    Parameter

    Description

    Group

    Group to which the configuration file belongs.

    Configuration File Name

    Name of the custom configuration file (for example, config.yaml) mounted to the VM mounting path.

    Configuration File Version

    Version of the configuration file to be bound to the component. latest is selected by default, indicating the latest version.

    ConfigMap Mount Path

    Location of the operating system files.

    Enter a relative path to the working directory. You can get the working directory location from the environment variable ${APP_HOME}.

    Relative path for mounting the configuration file. Example: ./config. The upper-level directory is /opt/application/{CAS_INSTANCE_NAME}/{CAS_INSTANCE_VERSION}/{CAS_INSTANCE_ID}, which stores the environment dependency, installation, startup, and stop scripts, and software packages required for component deployment.

    • {CAS_INSTANCE_NAME} is the component instance name.
    • {CAS_INSTANCE_VERSION} is the component instance version.
    • {CAS_INSTANCE_ID} is the component instance ID.

  3. Click OK.
  4. (Optional) Select a created key from the Associate Key drop-down list to associate the key with the configuration file.

    If sensitive information such as passwords needs to be encrypted in your configuration items, you can interconnect with DEW and use a custom key to encrypt and decrypt sensitive information.

    This parameter is available only when Data Encryption Workshop (DEW) is deployed in the region where ServiceStage is deployed and the component deployment environment manages ECSs.

    For details about how to create a key, see Creating a Key.

Editing a Bound Configuration File

  1. Choose Application Settings.
  2. Select the target configuration file in the configuration file list.
  3. Click Edit in the Operation column.
  4. Set the configuration file parameters by referring to the following table.

    Parameter

    Description

    Group

    Group to which the configuration file belongs.

    Configuration File Name

    Name of the custom configuration file (for example, config.yaml) mounted to the VM mounting path.

    Configuration File Version

    Version of the configuration file to be bound to the component. latest is selected by default, indicating the latest version.

    ConfigMap Mount Path

    Location of the operating system files.

    Enter a relative path to the working directory. You can get the working directory location from the environment variable ${APP_HOME}.

    Relative path for mounting the configuration file. Example: ./config. The upper-level directory is /opt/application/{CAS_INSTANCE_NAME}/{CAS_INSTANCE_VERSION}/{CAS_INSTANCE_ID}, which stores the environment dependency, installation, startup, and stop scripts, and software packages required for component deployment.

    • {CAS_INSTANCE_NAME} is the component instance name.
    • {CAS_INSTANCE_VERSION} is the component instance version.
    • {CAS_INSTANCE_ID} is the component instance ID.

  5. Click OK.
  6. (Optional) Select a created key from the Associate Key drop-down list to associate the key with the configuration file.

    If sensitive information such as passwords needs to be encrypted in your configuration items, you can interconnect with DEW and use a custom key to encrypt and decrypt sensitive information.

    This parameter is available only when Data Encryption Workshop (DEW) is deployed in the region where ServiceStage is deployed and a CCE cluster is bound to the component deployment environment.

    For details about how to create a key, see Creating a Key.

Unbinding a Bound Configuration File

  1. Choose Application Settings.
  2. Select the target configuration file in the configuration file list.
  3. Click Remove in the Operation column.