Help Center/ ServiceStage/ User Guide/ Component Management/ Managing Application Settings of a Container-Deployed Component
Updated on 2024-12-16 GMT+08:00

Managing Application Settings of a Container-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 container mounting path.

    Container Mount Path

    Absolute path for mounting the configuration file. Example: /tmp.

    NOTICE:

    Do not mount a data volume to a system directory such as / or /var/run. Otherwise, an exception occurs. An empty directory is recommended. If the directory is not empty, ensure that the directory does not contain any file that affects application startup. Otherwise, the files will be replaced, causing application startup exceptions. As a result, the application fails to be created.

  3. Click OK.

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 container mounting path.

    Container Mount Path

    Absolute path for mounting the configuration file. Example: /tmp.

    NOTICE:

    Do not mount a data volume to a system directory such as / or /var/run. Otherwise, an exception occurs. An empty directory is recommended. If the directory is not empty, ensure that the directory does not contain any file that affects application startup. Otherwise, the files will be replaced, causing application startup exceptions. As a result, the application fails to be created.

  5. Click OK.

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.