Override a Service Configuration in an Environment
You can configure your Environment to override settings of the Services that use the Environment. This enables a Service to keep its settings but have them changed when used with this Environment.
In this topic:
- Before You Begin
- Review: Override Type Options
- Option 1: File Override
- Option 2: Variable Override
- Platform-Specific Options
Before You Begin
Review: Override Type Options
- From the Environment, go to the Service Configuration Overrides section, and click Add Configuration Overrides. The Service Configuration Override settings appear.
- In Service, select the Service you want to override.
- Select one of the Override Type options:
- File Override
- Variable Override
- Values YAML
Option 1: File Override
- In Override Type, select File Override.
- In Relative File Path, select the file to overwrite from the Service's Config Files.
- Select the Encrypt File checkbox, to overwrite the Service's Config File using an existing encrypted file from Harness Secrets Management.
- You can select the encrypted file from the drop-down menu or Add New Encrypt File. For more information on adding new encrypt file, see Use Encrypted File Secrets.
- If you do not select the Encrypt File option, then choose the File to overwrite the Service's Config Files and click Submit.
Option 2: Variable Override
- In Override Type, select Variable Override. The Variable Override options appear.
- In Configuration Variable, select the variable from the Service's Config Variables to overwrite.
- In Type, select Text or Encrypted Text.
- In Override Value, enter the value to overwrite the variable value in the Service. If you selected Encrypted Text in Type, you can select an Encrypted Text values defined in Secrets Management and click Submit.