forked from poseidon/matchbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatchbox-deployment.yaml
55 lines (55 loc) · 1.33 KB
/
matchbox-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
55
apiVersion: apps/v1
kind: Deployment
metadata:
name: matchbox
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
name: matchbox
template:
metadata:
labels:
name: matchbox
phase: prod
spec:
containers:
- name: matchbox
image: quay.io/poseidon/matchbox:v0.8.3
env:
- name: MATCHBOX_ADDRESS
value: "0.0.0.0:8080"
- name: MATCHBOX_RPC_ADDRESS
value: "0.0.0.0:8081"
- name: MATCHBOX_LOG_LEVEL
value: "debug"
ports:
- name: http
containerPort: 8080
- name: https
containerPort: 8081
resources:
requests:
cpu: "50m"
memory: "50Mi"
volumeMounts:
- name: config
mountPath: /etc/matchbox
- name: data
mountPath: /var/lib/matchbox
- name: assets
mountPath: /var/lib/matchbox/assets
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30
volumes:
- name: config
secret:
secretName: matchbox-rpc
- name: data
emptyDir: {}
- name: assets
emptyDir: {}