-
Notifications
You must be signed in to change notification settings - Fork 2
/
alephium-miner.yaml
73 lines (72 loc) · 1.58 KB
/
alephium-miner.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
## Set the external IP address from the `alephium-miner` to
## `alephium.network.external-address` for the alephium full node.
## For example:
## alephium.network.external-address = "34.79.193.48:9973"
apiVersion: v1
kind: Service
metadata:
name: alephium-miner
spec:
selector:
app: alephium
ports:
- name: p2p
protocol: TCP
port: 9973
targetPort: 9973
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: alephium-cpu-miner
name: alephium-cpu-miner
spec:
replicas: 0
selector:
matchLabels:
app: alephium-cpu-miner
template:
metadata:
labels:
app: alephium-cpu-miner
name: alephium-cpu-miner
spec:
containers:
- command: ['/cpu-miner', 'alephium']
image: alephium/dev-cpu-miner:latest
imagePullPolicy: Always
name: alephium-cpu-miner
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: alephium-gpu-miner
name: alephium-gpu-miner
spec:
# Adjust replicas if want to run more GPU miner instances
replicas: 0
selector:
matchLabels:
app: alephium-gpu-miner
template:
metadata:
labels:
app: alephium-gpu-miner
name: alephium-gpu-miner
spec:
containers:
- command: ['/gpu-miner', 'alephium']
image: alephium/gpu-miner:latest
imagePullPolicy: Always
name: alephium-gpu-miner
resources:
limits:
nvidia.com/gpu: 1
tolerations:
- key: "nvidia.com/gpu"
operator: "Equal"
value: "present"
effect: "NoSchedule"