File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
content/en/docs/tasks/inject-data-application Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 47
47
envar-demo 1/1 Running 0 9s
48
48
```
49
49
50
- 1. Get a shell to the container running in your Pod :
50
+ 1. List the pod ' s container environment variables :
51
51
52
52
```shell
53
- kubectl exec -it envar-demo -- /bin/bash
54
- ` ` `
55
-
56
- 1. In your shell, run the ` printenv` command to list the environment variables.
57
-
58
- ` ` ` shell
59
- # Run this in the shell inside the container
60
- printenv
53
+ kubectl exec envar-demo -- printenv
61
54
```
62
55
63
56
The output is similar to this:
71
64
DEMO_FAREWELL=Such a sweet sorrow
72
65
```
73
66
74
- 1. To exit the shell, enter ` exit` .
75
-
76
67
{{< note >}}
77
68
The environment variables set using the `env` or `envFrom` field
78
69
override any environment variables specified in the container image.
You can’t perform that action at this time.
0 commit comments