-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
39 lines (38 loc) · 871 Bytes
/
deployment.yaml
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: apps/v1
kind: Deployment
metadata:
name: stocks-deployment
spec:
selector:
matchLabels:
app: stocks
replicas: 1
template:
metadata:
labels:
app: stocks
spec:
containers:
- name: stocks
image: wayofthebadger/sre-goodness:latest
ports:
- containerPort: 8080
env:
- name : Symbol
valueFrom:
configMapKeyRef:
name: env-variables
key: symbol
- name : NDAYS
valueFrom:
configMapKeyRef:
name: env-variables
key: ndays
volumeMounts:
- name: apikeyvol
mountPath: "/dist/config/"
readOnly: true
volumes:
- name: apikeyvol
secret:
secretName: apikey-secret