Additional Configuration
The agent exposes certain environment variables for additional configuration. Depending on how the agent is deployed, you can set these environment variables directly, or use deployment-specific variables like Helm chart values or Terraform settings. If the agent's Helm chart or Terraform module does not expose a dedicated configuration for a given environment variable, the environment variable can be set using the generic configuration below:
- Terraform
- Helm
Update your main.tf with a list objects containing the environment variable names and values.
superblocks_agent_environment_variables = [{name = "ENV_VAR_NAME", value = "value"}]
Set environment variables under extraEnv or envFrom in the Helm chart values.yaml.
# Specify extra environment variables that will be applied
extraEnv:
ENV_VAR_NAME: value
# Specify environment variables that will be applied from secrets or configmaps.
envFrom:
- secretRef:
name: my-agent-env-secret
- configMapRef:
name: my-agent-env-configmap
Examples
See the docs below for common environment variables pertaining to each category: