Skip to main content

Environment Variables

In Kubernetes or OpenShift, your can set the Environment Variables (The env section of the deployment) This page explains you how.

tip

The Environment Variables that you set, are applied to all the instances of your application or microservice.


1. In your manifest repository's main branch, you will find the values.yaml file, it showld be in the following folder structure [environment]/[project]/[application]

2. In the values.yaml file, search for the Environment Variables section, you will find it like this:


## Environment Variables

3. Bellow the section title, add the following configuration and change the values as you need:


## Environment Variables
env:
# Environment Variables definition
normal:
# [key]:"[value]"
envOne: "values-of-env-one"
envTwo: "value-of-env-two"
#####

4. Commit and enjoy! ✨