-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.yaml
93 lines (93 loc) · 2.69 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
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
apiVersion: v1
kind: Service
metadata:
name: debugger-service
spec:
type: NodePort
selector:
app: debugger
ports:
- port: 80
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: debugger
name: debugger
spec:
replicas: 1
selector:
matchLabels:
app: debugger
template:
metadata:
labels:
app: debugger
spec:
runtimeClassName: kata-qemu
containers:
# - name: bpf-debugger
# imagePullPolicy: Always
# image: vladsimplestakingcom/mina-debugger:latest
# securityContext:
# privileged: true
# command: ["sh", "-ce", "bpf-recorder"]
# env:
# - name: RUST_LOG
# value: "info"
# - name: SERVER_PORT
# value: "80"
# ports:
# - name: http
# containerPort: 80
# protocol: TCP
# volumeMounts:
# - mountPath: /sys/kernel/debug
# name: sys-kernel-debug
# - mountPath: /proc
# name: proc
- name: mina-daemon
image: minaprotocol/mina-daemon:2.0.0rampup3-bfd1009-buster-berkeley
command:
command: ["sh", "-c"]
args:
- |
sleep 10
curl https://raw.githubusercontent.com/MinaProtocol/mina/bfd1009/genesis_ledgers/berkeley.json -o /berkeley.json
mkdir -p /key
chmod 700 /key
mina libp2p generate-keypair --privkey-path /key/privkey
# mina advanced generate-keypair --privkey-path /key/snark-producer.key
# --run-snark-worker "$(cat /key/snark-producer.key.pub)"
mina daemon --external-port 8302 --config-file /berkeley.json --libp2p-keypair /key/privkey --peer /ip6/2a02:8308:b082:2500::7399/tcp/8302/p2p/12D3KooWRBPiZQbaEb7yqxi3WThWF3PNBMFE5gemSAW956XSeQLV --insecure-rest-server --file-log-level Debug -log-level Info
ports:
- name: external-ip
containerPort: 8302
protocol: TCP
- name: graphql
containerPort: 3085
protocol: TCP
env:
- name: BPF_ALIAS
value: auto-0.0.0.0
- name: MINA_LIBP2P_PASS
value: ""
- name: MINA_PRIVKEY_PASS
value: ""
- name: VERBOSE
value: "1"
resources:
requests:
memory: 16G
limits:
memory: 32G
volumes:
- name: sys-kernel-debug
hostPath:
path: /sys/kernel/debug
- name: proc
hostPath:
path: /proc
---