aptos-localnet.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. labels:
  5. app: aptos
  6. name: aptos
  7. spec:
  8. ports:
  9. - name: node
  10. port: 8080
  11. targetPort: 8080
  12. - name: prometheus
  13. port: 6181
  14. targetPort: prometheus
  15. - name: faucet
  16. port: 8081
  17. targetPort: 8081
  18. selector:
  19. app: aptos
  20. ---
  21. apiVersion: apps/v1
  22. kind: StatefulSet
  23. metadata:
  24. labels:
  25. app: aptos
  26. name: aptos
  27. spec:
  28. replicas: 1
  29. selector:
  30. matchLabels:
  31. app: aptos
  32. serviceName: aptos
  33. template:
  34. metadata:
  35. labels:
  36. app: aptos
  37. spec:
  38. containers:
  39. - name: aptos-node
  40. image: aptos-node
  41. command:
  42. - /bin/sh
  43. - -c
  44. - /tmp/start_node.sh
  45. ports:
  46. - containerPort: 8080
  47. name: node
  48. protocol: TCP
  49. - containerPort: 6181
  50. name: prometheus
  51. protocol: TCP
  52. - containerPort: 8081
  53. name: faucet
  54. protocol: TCP
  55. readinessProbe:
  56. tcpSocket:
  57. port: 8081
  58. - name: aptos-contracts
  59. image: aptos-node
  60. command: ["/bin/bash", "-c"]
  61. args:
  62. [
  63. "cd /tmp/scripts && ./wait_for_devnet && ./deploy devnet && ./register_devnet && touch success && sleep infinity",
  64. ]
  65. readinessProbe:
  66. periodSeconds: 1
  67. failureThreshold: 300
  68. exec:
  69. command:
  70. - cat
  71. - /tmp/scripts/success