This commit is contained in:
HDW
2026-07-26 12:06:52 +02:00
parent 8a16a5a26b
commit 82e1e7a196
3 changed files with 51 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
# siehe xmrig-monero.yaml - xmrig/xmrig:latest ist verwaist (2017, kein RandomX/--daemon
# Support). Offizielles Release wird per initContainer geladen.
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -14,9 +16,24 @@ spec:
app: xmrig-monero-solo
spec:
priorityClassName: low-priority
initContainers:
- name: fetch-xmrig
image: curlimages/curl:latest
command:
- "sh"
- "-c"
- |
curl -fsSL -o /shared/xmrig.tar.gz \
https://github.com/xmrig/xmrig/releases/download/v6.26.0/xmrig-6.26.0-linux-static-x64.tar.gz
tar -xzf /shared/xmrig.tar.gz -C /shared --strip-components=1
chmod +x /shared/xmrig
volumeMounts:
- name: shared
mountPath: /shared
containers:
- name: xmrig
image: xmrig/xmrig:latest
image: alpine:latest
command: ["/shared/xmrig"]
args:
- "--daemon"
- "-o"
@@ -27,6 +44,9 @@ spec:
- "k8s-solo-lottery"
- "--daemon-poll-interval=1000"
- "--randomx-mode=light"
volumeMounts:
- name: shared
mountPath: /shared
resources:
requests:
cpu: "500m"
@@ -34,3 +54,6 @@ spec:
limits:
cpu: "1"
memory: "512Mi"
volumes:
- name: shared
emptyDir: {}