-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
48 lines (48 loc) · 1.08 KB
/
deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: sunrise
tier: web_app
name: sunrise
namespace: default
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: sunrise
tier: web_app
strategy:
type: Recreate
template:
metadata:
labels:
app: sunrise
tier: web_app
spec:
containers:
- env:
- name: APP_SECRET_KEY
valueFrom:
configMapKeyRef:
key: APP_SECRET_KEY
name: sunrise-config
- name: USER_SECRET_KEY
valueFrom:
configMapKeyRef:
key: USER_SECRET_KEY
name: sunrise-config
image: registry.gitlab.com/btbtravis/sunrise:0.0.1--alpha1
imagePullPolicy: IfNotPresent
name: sunrise-webapp
ports:
- containerPort: 5000
protocol: TCP
resources: {}
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: sunrise
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30