An environment variable refers to a container runtime variable. A maximum of 30 environment variables can be defined in a component template. The variables of a containerized application can be modified even after the application is deployed. This gives greater flexibility in containerized application management.
There are two ways to define an environment variable:
- Specify the Environment Variable parameter on the CCE console
- Specify the ENV parameter in the Dockerfile