monero
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
# xmrig/xmrig:latest auf Docker Hub ist verwaist (einziger Tag, Stand 2017, XMRig 2.4.2,
|
||||
# kein RandomX-Support). Stattdessen laedt ein initContainer das offizielle statische
|
||||
# Release direkt von github.com/xmrig/xmrig - verifizierte Quelle, aktuelle Version.
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@@ -14,9 +17,24 @@ spec:
|
||||
app: xmrig-monero
|
||||
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:
|
||||
- "-o"
|
||||
- "pool.supportxmr.com:443"
|
||||
@@ -26,6 +44,9 @@ spec:
|
||||
- "k8s-lottery"
|
||||
- "--tls"
|
||||
- "--randomx-mode=light"
|
||||
volumeMounts:
|
||||
- name: shared
|
||||
mountPath: /shared
|
||||
resources:
|
||||
requests:
|
||||
cpu: "500m"
|
||||
@@ -33,3 +54,6 @@ spec:
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: "512Mi"
|
||||
volumes:
|
||||
- name: shared
|
||||
emptyDir: {}
|
||||
|
||||
Reference in New Issue
Block a user