Help Center/ ServiceStage/ User Guide/ Configuration Management/ Editing a Configuration File
Updated on 2024-12-16 GMT+08:00

Editing a Configuration File

This section describes how to edit a configuration file.

Prerequisites

The configuration file to be edited is available.

Editing a Configuration File

  1. Log in to ServiceStage.
  2. Choose Configuration Management.
  3. Use either of the following methods to go to the editing page:

    • Directly edit: Click Edit in the Operation column of the target configuration file.
    • Edit after viewing details: Click the target configuration file, view the configuration file details, and click Edit.

  4. In the Basic Info area, modify the configuration description.

    1. Click .
    2. Enter the configuration file description, which can contain up to 128 characters.
    3. Click .

  5. In the Configuration Content area, set whether to encrypt data.

    If the configuration file contains sensitive data such as passwords, you can enable data encryption to protect your sensitive information from being disclosed.

    • Click to enable data encryption.
    • Click to disable data encryption.

    Only container-deployed components support data encryption. If data encryption is enabled, the configuration file is mounted using secret. If data encryption is disabled, the configuration file is mounted using ConfigMap.

  6. In the Configuration Content area, set the system variables.

    1. Click System Variables.
    2. Select the variable to be written into the configuration file from the Variable list.

      ServiceStage provides environment, application, and component variables listed in Table 1. These system variables can be used in configuration files and will be automatically replaced with actual values during component deployment.

    3. Click Insert and insert the variable into the text box under Configuration Content.

    You can also perform the following operations to quickly set system variables using the example provided by ServiceStage:

    1. Click View Example. The Example dialog box is displayed.
    2. Click to copy the example.
    3. Click to close the Example dialog box.
    4. Click , paste the copied example to the editing box in Configuration Content, and edit the example.

  7. (Optional) Click Verify Content and modify the configuration as prompted.
  8. Click Release. The system automatically verifies the content correctness. Modify the content as prompted.

    After the configuration file is edited, you can view the current version details of the configuration file in the Configuration Management list. For details, see Viewing Current Version Details of a Configuration File.