49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
# services/crypto/xmr-miner/deployment.yaml
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: monero-p2pool
|
|
namespace: crypto
|
|
labels: { app: monero-p2pool }
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels: { app: monero-p2pool }
|
|
template:
|
|
metadata:
|
|
labels: { app: monero-p2pool }
|
|
spec:
|
|
nodeSelector:
|
|
node-role.kubernetes.io/worker: "true"
|
|
containers:
|
|
- name: monero-p2pool
|
|
image: registry.bstein.dev/infra/monero-p2pool:4.9
|
|
imagePullPolicy: Always
|
|
command: ["p2pool"]
|
|
args:
|
|
- "--host"
|
|
- "monerod.crypto.svc.cluster.local"
|
|
- "--rpc-port"
|
|
- "18081"
|
|
- "--zmq-port"
|
|
- "18083"
|
|
- "--stratum"
|
|
- "0.0.0.0:3333"
|
|
- "--wallet"
|
|
- "$(XMR_ADDR)"
|
|
# - "--light-mode"
|
|
# - "--no-randomx"
|
|
# - "--no-cache"
|
|
env:
|
|
- name: XMR_ADDR
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: xmr-payout
|
|
key: address
|
|
ports:
|
|
- { name: stratum, containerPort: 3333, protocol: TCP }
|
|
readinessProbe:
|
|
tcpSocket: { port: 3333 }
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|