1
00:00:08,150 --> 00:00:14,300
Hello In this lecture we will see how to set an environment variable in Kubernetes. Given a pod

2
00:00:14,300 --> 00:00:17,950
definition file which uses the same image as the dockor command.

3
00:00:17,960 --> 00:00:26,330
We ran in the last lecture to set an environment variable, use the ENV property. ENV is an array. So every

4
00:00:26,330 --> 00:00:31,360
item under the env property starts with a dash, indicating an item in the array.

5
00:00:31,610 --> 00:00:34,730
Each item has a name and a value property.

6
00:00:34,730 --> 00:00:40,190
The name is the name of the environment variable made available with the container and the value is

7
00:00:40,190 --> 00:00:41,720
its value.

8
00:00:41,750 --> 00:00:47,900
What we just saw was a direct way of specifying the environment variables using a plain key value pair

9
00:00:47,900 --> 00:00:49,070
format.

10
00:00:49,070 --> 00:00:56,230
However there are other ways of setting the environment variables such as using config maps and secrets.

11
00:00:56,270 --> 00:01:04,160
The difference in this case is that instead of specifying value, we say valueFrom. And then a specification

12
00:01:04,160 --> 00:01:06,420
of configMap or secret.

13
00:01:06,590 --> 00:01:11,850
We will discuss about configMaps and secretKeys in the upcoming lectures.

14
00:01:11,870 --> 00:01:14,810
That's it for this lecture and I will see you in the next.
