Hello In this lecture we will see how to set an environment variable in Kubernetes. Given a pod
definition file which uses the same image as the dockor command.
We ran in the last lecture to set an environment variable, use the ENV property. ENV is an array. So every
item under the env property starts with a dash, indicating an item in the array.
Each item has a name and a value property.
The name is the name of the environment variable made available with the container and the value is
its value.
What we just saw was a direct way of specifying the environment variables using a plain key value pair
format.
However there are other ways of setting the environment variables such as using config maps and secrets.
The difference in this case is that instead of specifying value, we say valueFrom. And then a specification
of configMap or secret.
We will discuss about configMaps and secretKeys in the upcoming lectures.
That's it for this lecture and I will see you in the next.