39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: p2pool
|
|
namespace: crypto
|
|
spec:
|
|
replicas: 1
|
|
selector: { matchLabels: { app: p2pool } }
|
|
template:
|
|
metadata:
|
|
labels: { app: p2pool }
|
|
spec:
|
|
priorityClassName: scavenger
|
|
nodeSelector:
|
|
kubernetes.io/arch: arm64
|
|
volumes:
|
|
- name: payout
|
|
secret:
|
|
secretName: xmr-payout
|
|
containers:
|
|
- name: p2pool
|
|
image: ghcr.io/schernykh/p2pool:latest
|
|
imagePullPolicy: IfNotPresent
|
|
command: ["/bin/sh","-c"]
|
|
args:
|
|
- |
|
|
set -eu
|
|
ADDR="$(cat /run/xmr/address)"
|
|
exec nice -n 19 ionice -c3 p2pool \
|
|
--wallet "$ADDR" \
|
|
--host monerod.crypto.svc.cluster.local \
|
|
--rpc-port 18081 \
|
|
--zmq-port 18083 \
|
|
--stratum 0.0.0.0:3333
|
|
ports:
|
|
- { containerPort: 3333, name: stratum, protocol: TCP }
|
|
volumeMounts:
|
|
- { name: payout, mountPath: /run/xmr, readOnly: true }
|