forked from vigneshkum/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
evara
39 lines (39 loc) · 726 Bytes
/
evara
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: v1
kind: Pod
metadata:
name: envar-demo
labels:
purpose: demonstrate-envvars
spec:
containers:
- name: envar-demo-container
image: nginx
ports:
- containerPort: 8080
env:
- name: DEMO_GREETINGS
value: "Hello from the Environment"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: test-config1
data:
name: DEMO_GREETINGS_SESSION
value: "Hello from the DEMO GREETINGS environment"
---
apiVersion: v1
kind: Pod
metadata:
name: envar-demo1
labels:
purpose: demonstrate-envars1
spec:
containers:
- name: envar-demo-container
image: nginx
ports:
- containerPort: 8081
envFrom:
- configMapRef:
name: test-config1