Environment Variables

Introduction

What is an environment variable?

An environment variable (env var) is a key-value pair that stores information about the environment in which a process runs.

Env vars can be used to control the behavior of a program if that program expects its configuration to be set via environment variables.

Be aware that env vars are case-sensitive, so the env var MY_VAR is different from the env var my_var.

Environment variables in Linux

Environment variables in Docker

Environment variables in Kubernetes