mirror of
https://github.com/luxfi/mpc.git
synced 2026-09-24 00:26:24 +00:00
- Replace github.com/dgraph-io/badger/v4 with github.com/luxfi/zapdb/v4 v4.9.2 throughout pkg/kvstore/, pkg/transport/, cmd/mpcd/, e2e/, scripts/ - Rename BadgerPath/BadgerPassword → ZapDBPath/ZapDBPassword in FactoryConfig - Remove local replace directives from go.mod: - hanzoai/orm: now uses published v0.3.2 (tagged on GitHub) - hanzoai/kv-go/v9: now uses published v9.17.2-hanzo.1 - Only remaining replace: agl/ed25519 → luxfi/edwards25519 - Add vendor/ directory (GOWORK=off go mod vendor) for reproducible builds - Update Dockerfile to golang:1.26-alpine + -mod=vendor build flag - Update CI/CD to use self-hosted linux/amd64 runners (no cross-compilation) - Add k8s/valkey.yaml for session KV store - Update k8s manifests: api-kv support, ZapDB password env, fresh secrets - Dashboard API and MPC nodes all tested running on cluster (3/3 nodes healthy)
77 lines
1.6 KiB
YAML
77 lines
1.6 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: mpc-valkey
|
|
namespace: lux-mpc
|
|
labels:
|
|
app: mpc-valkey
|
|
app.kubernetes.io/part-of: lux-mpc
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 6379
|
|
targetPort: 6379
|
|
protocol: TCP
|
|
name: valkey
|
|
selector:
|
|
app: mpc-valkey
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: mpc-valkey
|
|
namespace: lux-mpc
|
|
labels:
|
|
app: mpc-valkey
|
|
app.kubernetes.io/part-of: lux-mpc
|
|
spec:
|
|
serviceName: mpc-valkey
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: mpc-valkey
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mpc-valkey
|
|
app.kubernetes.io/part-of: lux-mpc
|
|
spec:
|
|
containers:
|
|
- name: valkey
|
|
image: valkey/valkey:8-alpine
|
|
ports:
|
|
- containerPort: 6379
|
|
name: valkey
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 256Mi
|
|
readinessProbe:
|
|
exec:
|
|
command: ["valkey-cli", "ping"]
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
exec:
|
|
command: ["valkey-cli", "ping"]
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
volumeMounts:
|
|
- name: valkey-data
|
|
mountPath: /data
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: valkey-data
|
|
labels:
|
|
app: mpc-valkey
|
|
app.kubernetes.io/part-of: lux-mpc
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 2Gi
|