This repository has been archived by the owner on Mar 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsgstore.yaml
96 lines (96 loc) · 1.79 KB
/
msgstore.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: msgdata
labels:
project: cast
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: msgexport
labels:
project: cast
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: msgstore
labels:
project: cast
spec:
selector:
matchLabels:
name: msgstore
project: cast
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
name: msgstore
project: cast
spec:
containers:
- image: ipfs/go-ipfs:release
imagePullPolicy: IfNotPresent
name: msgstore
ports:
- containerPort: 4001
- containerPort: 5001
- containerPort: 8080
volumeMounts:
- mountPath: /data/ipfs
name: msgdata
- mountPath: /export
name: msgexport
readinessProbe:
httpGet:
path: /api/v0/block/get?arg=QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG
port: 5001
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
hostname: msgstore
restartPolicy: Always
volumes:
- name: msgdata
persistentVolumeClaim:
claimName: msgdata
- name: msgexport
persistentVolumeClaim:
claimName: msgexport
---
apiVersion: v1
kind: Service
metadata:
name: msgstore
labels:
project: cast
spec:
selector:
name: msgstore
project: cast
ports:
- name: "4001"
port: 4001
targetPort: 4001
- name: "8080"
port: 8080
targetPort: 8080
- name: "5001"
port: 5001
targetPort: 5001