xmrig

by Helm

Helm chartv0.1.1App 5.8.2

Deploy Monero miners in a Kubernetes cluster

About this chart

XMRig Helm Chart

XMRig is a cryptocurrency miner for Monero (among other coins). This helm chart can be used to configure a basic CPU miner in association with a mining pool.

Installing the Chart

# Make sure you've added this repo to helm
helm repo add brannon https://helm.brannon.online
# Replace the below values with the login and address for your pool
# WARNING: The password will be exposed as plaintext in the generated K8s deployment object
echo '
pool: xmr.pool.minergate.com:45700
email: [email protected]
password: password
' > xmrig-value-overrides.yaml

# Deploy the release using the values you just modified
helm upgrade --install xmrig brannon/xmrig --values xmrig-value-overrides.yaml

Uninstalling the chart

To uninstall/delete the xmrig deployment:

helm delete xmrig

The command removes all the Kubernetes components associated with the chart and deletes the release.

Resources requirements

When operating your miners with the default randomxMode: fast configuration, at least ~5Gi of RAM is required to prevent OOM errors. If you don't have that much RAM to spare for each replica, you can set randomxMode: light which requires ~512Mi instead, at the cost of much slower mining performance.

Parameters

The following table lists the configurable parameters for this chart and their default values.

ParameterDescriptionDefault
replicaCountThe number of unique xmrig miners you'd like to run1
poolThe host and port of the mining pool used while miningxmr.pool.minergate.com:45700
emailThe email address used to login to the mining pool[email protected]
passwordThe password used to login to the mining poolpassword
poolDonationPercentThe percentage of Monero earned during mining to donate back to the pool1
randomxModeThe randomx-mode used by the miner. fast is faster than light, but requires at least ~5Gi of memory.fast
image.repositoryThe xmrig Docker imagebrannondorsey/alpine-xmrig
image.pullPolicyImage pull policyIfNotPresent
resourcesCPU/Memory resource requests/limits for each xmrig miner. It is HIGHLY recommended that you set resource limits as xmrig is CPU hungry!5Gi memory limit. See values.yaml.
nodeSelectorNode labels for pod assignment{}
tolerationsToleration labels for pod assignment[]
affinityAffinity settings for pod assignment{}

Deploy xmrig with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has xmrig on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartxmrig is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply