-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathflask-deployment.yml
More file actions
46 lines (46 loc) · 1.12 KB
/
flask-deployment.yml
File metadata and controls
46 lines (46 loc) · 1.12 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
name: flask
name: flask
spec:
progressDeadlineSeconds: 2147483647
replicas: 1
selector:
matchLabels:
app: flask
template:
metadata:
creationTimestamp: null
labels:
app: flask
spec:
containers:
- env:
- name: FLASK_ENV
value: development
- name: APP_SETTINGS
value: project.config.DevelopmentConfig
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
key: user
name: postgres-credentials
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: postgres-credentials
image: mjhea0/flask-kubernetes:latest
imagePullPolicy: Always
name: flask
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30