beszel-agent-gpu: add smartmontools so agent can collect NVMe SMART
Agent chay smartctl ben trong container; can them devices mount (/dev/nvme0) tai server tieu thu — da cap nhat example trong README.
This commit is contained in:
1 parent
a4182a14f7
commit
6e1df22b4f
2 files changed
+7
-2
No files matched your search
@@ -8,10 +8,12 @@
|
|||||||
# phép nvidia-smi chạy để agent thu thập GPU stats.
|
# phép nvidia-smi chạy để agent thu thập GPU stats.
|
||||||
FROM ubuntu:26.04
|
FROM ubuntu:26.04
|
||||||
|
|
||||||
# TLS: image ubuntu gốc không kèm CA bundle, thiếu nó agent không verify được
|
# TLS + SMART: image ubuntu gốc không kèm CA bundle, thiếu nó agent không verify được
|
||||||
# chứng chỉ của hub (x509: certificate signed by unknown authority).
|
# chứng chỉ của hub (x509: certificate signed by unknown authority).
|
||||||
|
# smartmontools: smartctl để agent thu thập SMART của SSD/HDD — cần mount
|
||||||
|
# device node (vd /dev/nvme0) vào container, xem README.
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends ca-certificates \
|
&& apt-get install -y --no-install-recommends ca-certificates smartmontools \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Binary Go tĩnh từ image chính thức + bảng id GPU AMD (giữ parity).
|
# Binary Go tĩnh từ image chính thức + bảng id GPU AMD (giữ parity).
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ services:
|
|||||||
- driver: nvidia
|
- driver: nvidia
|
||||||
count: all
|
count: all
|
||||||
capabilities: [gpu]
|
capabilities: [gpu]
|
||||||
|
# SMART của NVMe: agent chạy smartctl trong container, cần device node
|
||||||
|
devices:
|
||||||
|
- /dev/nvme0:/dev/nvme0
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ./beszel_agent_data:/var/lib/beszel-agent
|
- ./beszel_agent_data:/var/lib/beszel-agent
|
||||||
|
|||||||
Reference in new issue
Block a user