Skip to content

Commit a0b1581

Browse files
authored
Merge pull request #36 from ContainerSolutions/feature-add-deployment-environment
Add Deployment example with environment variables
2 parents 37ba37b + a3498cb commit a0b1581

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: deployments-simple-deployment-with-environment-deployment
6+
spec:
7+
replicas: 2
8+
selector:
9+
matchLabels:
10+
app: deployments-simple-deployment-with-environment-app
11+
template:
12+
metadata:
13+
labels:
14+
app: deployments-simple-deployment-with-environment-app
15+
spec:
16+
containers:
17+
- name: busybox
18+
image: busybox
19+
command:
20+
- sleep
21+
- "3600"
22+
env:
23+
# Plain Text ENV
24+
- name: DEMO_GREETING
25+
value: "Hello from the environment"
26+
# Load from a secret
27+
- name: DATABASE_PASSWORD
28+
valueFrom:
29+
secretKeyRef:
30+
name: database_secrets
31+
key: password
32+
# Load from a configMap
33+
- name: KAFKA_TOPIC
34+
valueFrom:
35+
configMapKeyRef:
36+
name: kafka_config_map
37+
key: topic

0 commit comments

Comments
 (0)