Environment
Last updated
Last updated
An environment is an isolated and ephemeral execution space in which applications can be deployed. The concept of environments applies in containerised target environments like Kubernetes and in traditional cloud hosting targets like AWS, Google Cloud and Azure, etc.
Target describes the execution space where application resources are to be provisioned. One target describes one Kubernetes cluster and namespace, it can also describe a region or VPC for cloud providers.
Explore API reference for more details
Odin exposes various environment variables that can be used for various scripts you may need. These variables are Dream11 specific and depend on the base images used to deploy.
TEAM_SUFFIX
VPC_SUFFIX
APP_DIR: Absolute path where application code is present
ENV
NAMESPACE: config store namespace
SERVICE_NAME: artifact name
VAULT_TOKEN
CONSUL_TOKEN
DEPLOYMENT_TYPE: deployment_type specified in provisioning config
For Dream11 envconsul
is available in the environment
envconsul
: