This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
49 lines (48 loc) · 1.71 KB
/
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
#
# * 这是 K8S 的宣言文件。
# 通过 K8S 使用时请根据您的构成进行修改。
# * 如果找不到 P 盘目录,则被忽略。
# 节点和存储不均等的情况下,可以在磷酸盐侧准备空目录。
#
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: rpi-hpool-chia-miner
labels: { app: hpool, tier: chia-miner }
spec:
selector:
matchLabels: { app: hpool, tier: chia-miner }
template:
metadata:
labels: { app: hpool, tier: chia-miner }
spec:
hostNetwork: true
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: "kubernetes.io/hostname"
# operator: In
# values:
# - worker1.local
# - worker2.local
# - worker3.local
# - worker4.local
# - worker5.local
containers:
- name: rpi-hpool-chia-miner
image: "master.local:1234/rpi-hpool-chia-miner:latest"
imagePullPolicy: Always
env:
- { name: API_KEY, value: "00000000-0000-0000-0000-000000000000" }
- { name: SCAN_INTERVAL, value: "30" }
volumeMounts:
- { name: plot-volume-0, mountPath: /plot-0, readOnly: true }
- { name: plot-volume-1, mountPath: /plot-1, readOnly: true }
# - { name: plot-volume-2, mountPath: /plot-2, readOnly: true }
volumes:
- { name: plot-volume-0, hostPath: { type: Directory, path: /mnt/sda1 } }
- { name: plot-volume-1, hostPath: { type: Directory, path: /mnt/sdb1 } }
# - { name: plot-volume-2, hostPath: { type: Directory, path: /mnt/sdc1 } }