-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.yaml
51 lines (51 loc) · 1.18 KB
/
run.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
apiVersion: v1
kind: Service
metadata:
name: archive-service
spec:
type: NodePort
selector:
app: archive
ports:
- port: 9000
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: archive
name: archive
spec:
replicas: 1
selector:
matchLabels:
app: archive
template:
metadata:
labels:
app: archive
spec:
containers:
- name: openmina-archive
image: vladsimplestakingcom/openmina-archive:0.5
command: ["sh", "-c"]
args:
- openmina-archive --chain-id=3c41383994b87449625df91769dff7b507825c064287d30fada9286f3f1cb15e --path=/database/db --listen=/ip4/0.0.0.0/tcp/8302 --http 9000
env:
- name: RUST_LOG
value: info
ports:
- name: external-ip
containerPort: 8302
protocol: TCP
- name: http
containerPort: 9000
protocol: TCP
volumeMounts:
- mountPath: /database
name: archive-database
volumes:
- name: archive-database
persistentVolumeClaim:
claimName: archive-database-claim