---
apiVersion: v1
kind: Service
metadata:
name: eth-devnet
labels:
app: eth-devnet
spec:
ports:
- port: 8545
name: rpc
protocol: TCP
clusterIP: None
selector:
apiVersion: apps/v1
kind: StatefulSet
matchLabels:
serviceName: eth-devnet
replicas: 1
template:
terminationGracePeriodSeconds: 1
containers:
- name: ganache
image: eth-node
command:
- npx
- ganache-cli
- --logging.quiet
- --wallet.defaultBalance=10000
- --wallet.deterministic
- --chain.time="1970-01-01T00:00:00+00:00"
- --host=0.0.0.0
- --wallet.totalAccounts=13
- --chain.chainId=1337
- --chain.asyncRequestProcessing=false
- containerPort: 8545
readinessProbe:
tcpSocket:
port: rpc
- name: tests
stdin: true
- /bin/sh
- -c
- "npm run migrate && npx truffle exec scripts/deploy_test_token.js && npx truffle exec scripts/register_all_chains.js && npm run deploy-relayers-evm1 && nc -lkn 2000"
periodSeconds: 1
failureThreshold: 300
initialDelaySeconds: 90
port: 2000
- name: mine
- "npx truffle exec mine.js"