69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: eth-devnet
|
|
labels:
|
|
app: eth-devnet
|
|
spec:
|
|
ports:
|
|
- port: 8545
|
|
name: rpc
|
|
protocol: TCP
|
|
clusterIP: None
|
|
selector:
|
|
app: eth-devnet
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: eth-devnet
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: eth-devnet
|
|
serviceName: eth-devnet
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: eth-devnet
|
|
spec:
|
|
terminationGracePeriodSeconds: 1
|
|
containers:
|
|
- name: ganache
|
|
image: eth-node
|
|
command:
|
|
- npx
|
|
- ganache-cli
|
|
- -e 10000
|
|
- --deterministic
|
|
- --time="1970-01-01T00:00:00+00:00"
|
|
- --host=0.0.0.0
|
|
ports:
|
|
- containerPort: 8545
|
|
name: rpc
|
|
protocol: TCP
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: rpc
|
|
- name: tests
|
|
image: eth-node
|
|
stdin: true
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- "npm run migrate && npx truffle exec scripts/deploy_test_token.js && npm run deploy-batched-vaa-sender && npx truffle exec scripts/register_solana_chain.js && npx truffle exec scripts/register_terra_chain.js && npx truffle exec scripts/register_terra2_chain.js && npx truffle exec scripts/register_bsc_chain.js && npx truffle exec scripts/register_algo_chain.js && npx truffle exec scripts/register_near_chain.js && npx truffle exec scripts/register_worm_chain.js && npx truffle exec scripts/register_aptos_chain.js && nc -lkp 2000 0.0.0.0"
|
|
readinessProbe:
|
|
periodSeconds: 1
|
|
failureThreshold: 300
|
|
tcpSocket:
|
|
port: 2000
|
|
- name: mine
|
|
image: eth-node
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- "npx truffle exec mine.js"
|
|
---
|