For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Custom Environment Variables for Worker Pods

How to set custom environment variables on Trilio for Kubernetes worker pods.

Use customJobEnvs to add extra environment variables to TVK worker pods (backup, restore, metadata, target browser, and other target-related Jobs and Deployments).

The same variables are applied to all of those pods. They take effect on new pods only. Running Job pods are not updated.

Control-plane and UI pods are not included.

Set the variables (operator install)

Edit the TrilioVaultManager CR in the install namespace:

spec:
  helmValues:
    customJobEnvs:
      AWS_MAX_ATTEMPTS: "10"
      S3_ADDRESSING_STYLE: "path"

Or:

kubectl patch tvm triliovault-manager -n <install-namespace> --type merge -p '{
  "spec": {"helmValues": {"customJobEnvs": {
    "AWS_MAX_ATTEMPTS": "10",
    "S3_ADDRESSING_STYLE": "path"
  }}}}'

This is the supported way on OpenShift and upstream operator installs. The change is kept across upgrades.

If you installed the k8s-triliovault chart directly (no operator):

helm upgrade <release> <repo>/k8s-triliovault -n <install-namespace> --reuse-values --set customJobEnvs.AWS_MAX_ATTEMPTS=10

Do not edit k8s-triliovault-config by hand for a lasting change. The next upgrade can overwrite it.

Check that it applied

Target browser and similar Deployments roll out on their own. For Jobs, run a new backup or restore (or wait for the next scheduled Job).

Remove them

Last updated

Was this helpful?