43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: p2pool
|
|
namespace: crypto
|
|
labels: { app: p2pool }
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels: { app: p2pool }
|
|
template:
|
|
metadata:
|
|
labels: { app: p2pool }
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/arch: arm64
|
|
priorityClassName: scavenger
|
|
containers:
|
|
- name: p2pool
|
|
image: ghcr.io/sethforprivacy/p2pool:latest
|
|
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
|