Editing a Configuration File
This section describes how to edit a configuration file.
Prerequisites
The configuration file to be edited is available.
- The configuration file has been created. For details, see Creating a Configuration File.
- The configuration file has been imported. For details, see Importing a Configuration File.
Editing a Configuration File
- Log in to ServiceStage.
- Choose Configuration Management.
- 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.
- In the Basic Info area, modify the configuration description.
- Click .
- Enter the configuration file description, which can contain up to 128 characters.
- Click .
- 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.
- In the Configuration Content area, set the system variables.
- Click System Variables.
- 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.
- 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:
- Click View Example. The Example dialog box is displayed.
- Click to copy the example.
- Click to close the Example dialog box.
- Click , paste the copied example to the editing box in Configuration Content, and edit the example.
- (Optional) Click Verify Content and modify the configuration as prompted.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot