eth-devnet.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: eth-devnet
  6. labels:
  7. app: eth-devnet
  8. spec:
  9. ports:
  10. - port: 8545
  11. name: rpc
  12. protocol: TCP
  13. clusterIP: None
  14. selector:
  15. app: eth-devnet
  16. ---
  17. apiVersion: apps/v1
  18. kind: StatefulSet
  19. metadata:
  20. name: eth-devnet
  21. spec:
  22. selector:
  23. matchLabels:
  24. app: eth-devnet
  25. serviceName: eth-devnet
  26. replicas: 1
  27. template:
  28. metadata:
  29. labels:
  30. app: eth-devnet
  31. spec:
  32. terminationGracePeriodSeconds: 1
  33. containers:
  34. - name: anvil
  35. image: eth-node
  36. # This command generates additional accounts compared to the default of 10. The purpose is to use dedicated
  37. # accounts for different aspects of the test suite. When adding new integration tests, consider increasing
  38. # the number of accounts below and using a fresh key for the new tests.
  39. command:
  40. - anvil
  41. - --silent
  42. - --mnemonic=myth like bonus scare over problem client lizard pioneer submit female collect
  43. - --block-time=1
  44. - --host=0.0.0.0
  45. - --accounts=16
  46. - --chain-id=1337
  47. ports:
  48. - containerPort: 8545
  49. name: rpc
  50. protocol: TCP
  51. readinessProbe:
  52. tcpSocket:
  53. port: rpc
  54. - name: tests
  55. image: eth-node
  56. stdin: true
  57. command:
  58. - /bin/sh
  59. - -c
  60. - "cd ../../ethereum && CHAIN_ID=2 NETWORK=devnet ./sh/devnetInitialization.sh && cd ../relayer/ethereum && npm run deploy-relayers-evm1 && nc -lkn 2000"
  61. readinessProbe:
  62. periodSeconds: 1
  63. failureThreshold: 300
  64. initialDelaySeconds: 90
  65. tcpSocket:
  66. port: 2000
  67. ---