...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: the-deployment
5 labels:
6 deployment: hello
7spec:
8 replicas: 3
9 selector:
10 matchLabels:
11 deployment: hello
12 template:
13 metadata:
14 labels:
15 deployment: hello
16 spec:
17 containers:
18 - name: the-container
19 image: monopole/hello:1
20 command: ["/hello",
21 "--port=8080",
22 "--enableRiskyFeature=$(ENABLE_RISKY)"]
23 ports:
24 - containerPort: 8080
25 env:
26 - name: ALT_GREETING
27 valueFrom:
28 configMapKeyRef:
29 name: the-map
30 key: altGreeting
31 - name: ENABLE_RISKY
32 valueFrom:
33 configMapKeyRef:
34 name: the-map
35 key: enableRisky
View as plain text