March 2020
Beginner
592 pages
14h 14m
English
Let's say our web component expects the username in the environment variable, PETS_USERNAME, and the password in PETS_PASSWORD. If this is the case, we can modify our deployment YAML so that it looks as follows:

On lines 23 through 33, we define the two environment variables, PETS_USERNAME and PETS_PASSWORD, and map the corresponding key-value pair of pets-secret to them.
Note that we don't need a volume anymore; instead, we directly map the individual keys of our pets-secret into the corresponding environment variables that are valid inside the ...
Read now
Unlock full access