Skip to main content

Environment Variables

Persistent services are passed some environment variables when running on Dais. These are to help with interaction with Dais' internal HTTP API's.

Set this as the Cookie header whenever making API calls to Dais' internal HTTP API endpoints. This authenticates your project against the endpoint.

FILE_MANAGER_URL

This is the base URL for HTTP requests to file-manager. For example, to fetch a file make the request GET {env["FILE_MANAGER_URL"]}files/{path}.

PROJECT_ANALYTICS_SERVICE_URL

This is the base URL for HTTP requests to analytics-service.

CREATE_SCENARIO_URL

This is the URL that is POSTed to when creating a scenario.

SCENARIO_GROUP_VIEW_URL

This is the URL for an endpoint that returns scenario group data.

PROJECT_PERMISSIONS_URL

This is the URL for an endpoint that returns project permissions.

DAIS_NODE

NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.

DAIS_NAMESPACE

Namespace defines the space within which each name must be unique, i.e. within the namespace the pod will have a unique name.

DAIS_POD_NAME

The name of the pod within the namespace.

DAIS_POD_IP

IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.

DAIS_POD_SERVICE_ACCOUNT

ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

DAIS_CONTAINER_IMAGE

The name of the image deployed to the pods container.

DAIS_CONTAINER_PORT

The port the pods container is exposed on.

DAIS_CONTAINER_CPU_REQUEST

The amount of CPU requested for the pods container.

DAIS_CONTAINER_CPU_LIMIT

The maximum CPU available to the pods container.

DAIS_CONTAINER_MEMORY_REQUEST

The amount of memory requested for the pods container.

DAIS_CONTAINER_MEMORY_LIMIT

The maximum memory available to the pods container.