Documentation Center

Setting environment variables

About this task

Custom environment variables can be set independently for:
  • Controller pod.
  • Job engine pods: All pods share the same environment variables.
  • Translation engine pods: Each language pair has its own environment variables.
  • Training engine pods: All pods shared the same environment variables.

Procedure

Run the following command to set custom environment variables.
mtedge:
  ...
  controller:
    env:
      - name: CUSTOM_VAR_NAME
        value: "Custom Value"

  ...
  jengines:
    env:
      - name: CUSTOM_VAR_NAME
        value: "Custom Value"

  tengines:
    ...
    engfra:
      lp: engfra_generic_srv_tnmv_8_4_x_1
      ...
      env:
        - name: CUSTOM_VAR_NAME
          value: "Custom Value"
  trainingEngines:
    env:
      - name: CUSTOM_VAR_NAME
        value: "Custom Value"