Files
Hanzo DevandGitHub ea03508ca7 feat(k8s): unify with luxfi/universe — coherent boot + snapshot-native replication (#3)
Brings zoo to parity with lux: the SAME luxd-boot.sh (byte-identical to
luxfi/universe k8s/boot) drives every network, and native ZAP replication
(PQ-encrypted, restore-on-boot) replaces the boot-time admin_importChain (RLP)
path.

- k8s/boot/: shared entrypoint + mainnet/testnet/devnet env (ids 1/2/3,
  zoo EVM chainIds 200200/200201/200202, S3 path zoo/<net>/zaprepl,
  endpoint s3.zoo-system). Script is byte-identical to luxfi/universe.
- k8s/zoo-<net>/snapshot-native/: replicate-s3-creds + replicate-age secrets
  (fill from KMS) + ZooNetwork replication merge-patch. CRD already allows
  unknown fields, so spec.replication is accepted today.
- zoo-mainnet/luxd-rlp-import.yaml: RETIRED banner; kept as the provenance
  record of the one-time chain-200200 seed (now in the snapshot stream).
- SNAPSHOT-NATIVE-ROLLOUT.md: per-network apply order (devnet→testnet→mainnet).

Requires build-zoo rebuilt on database >= v1.20.3 and zooai operator
replication-env parity (mirror of luxfi/operator); until then the boot script
sets REPLICATE_* itself so replication works without operator changes.

Co-authored-by: Hanzo Dev <[email protected]>
2026-06-15 22:35:51 -07:00

18 lines
749 B
Bash

# Coherent boot — zoo devnet. Identical luxd-boot.sh as luxfi/universe; only the
# id / EVM chainId / S3 path differ. Primary-network id=3, Zoo EVM chainId=200202.
LUX_NETWORK=devnet
LUXD_NETWORK_ID=3
LUXD_DATA_DIR=/data
LUXD_HTTP_HOST=0.0.0.0
LUXD_HTTP_PORT=9630
LUXD_STAKING_PORT=9631
LUXD_BIN=/luxd/build/luxd
# Native ZAP replication → zoo-system MinIO (PQ-encrypted, restore-on-boot).
REPLICATE_S3_ENDPOINT=http://s3.zoo-system.svc.cluster.local:9000
REPLICATE_S3_BUCKET=zoo-snapshots
REPLICATE_S3_REGION=us-central1
REPLICATE_S3_USE_SSL=false
REPLICATE_S3_PATH=zoo/devnet/zaprepl
# REPLICATE_S3_ACCESS_KEY / SECRET_KEY + REPLICATE_AGE_IDENTITY come from the
# replicate-s3-creds / replicate-age secrets (EnvFrom) — see snapshot-native/.