-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
54 lines (54 loc) · 1.31 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
kind: Deployment
apiVersion: apps/v1
metadata:
name: flask-demo
namespace: flask-demo
labels:
app: flask-demo
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: flask-demo
version: v1
template:
metadata:
labels:
app: flask-demo
version: v1
spec:
containers:
- name: flask-demo
image: 893293361941/flask-demo
ports:
- name: http-5000
containerPort: 5000
protocol: TCP
imagePullPolicy: Always
env:
- name: DB_NAME
valueFrom:
secretKeyRef:
name: db-connection
key: DB_NAME
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: db-connection
key: DB_USERNAME
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: db-connection
key: DB_PASSWORD
- name: DB_HOST
valueFrom:
secretKeyRef:
name: db-connection
key: DB_HOST
- name: DB_PORT
valueFrom:
secretKeyRef:
name: db-connection
key: DB_PORT