Override a Service Configuration in an Environment

Updated 2 months ago by Archana Singh

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

  1. From the Environment, go to the Service Configuration Overrides section, and click Add Configuration Overrides. The Service Configuration Override settings appear.
  2. In Service, select the Service you want to override.
  3. Select one of the Override Type options:
  • File Override
  • Variable Override
  • Values YAML

Option 1: File Override

  1. In Override Type, select File Override.
  2. In Relative File Path, select the file to overwrite from the Service's Config Files.
  3. Select the Encrypt File checkbox, to overwrite the Service's Config File using an existing encrypted file from Harness Secrets Management.
  1. 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.
  1. If you do not select the Encrypt File option, then choose the File to overwrite the Service's Config Files and click Submit.
Make sure you have the update permission on the Environment before you try to add the Service Config File. See Managing Users and Groups (RBAC) for more information about assigning permissions.

Option 2: Variable Override

  1. In Override Type, select Variable Override. The Variable Override options appear.
  1. In Configuration Variable, select the variable from the Service's Config Variables to overwrite.
  2. In Type, select Text or Encrypted Text.
  1. 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.

Platform-Specific Options

How did we do?