terra2-devnet.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. labels:
  5. app: terra2-terrad
  6. name: terra2-terrad
  7. spec:
  8. ports:
  9. - name: rpc
  10. port: 26657
  11. protocol: TCP
  12. - name: rest
  13. port: 1317
  14. protocol: TCP
  15. selector:
  16. app: terra2-terrad
  17. ---
  18. apiVersion: apps/v1
  19. kind: StatefulSet
  20. metadata:
  21. labels:
  22. app: terra2-terrad
  23. name: terra2-terrad
  24. spec:
  25. replicas: 1
  26. selector:
  27. matchLabels:
  28. app: terra2-terrad
  29. template:
  30. metadata:
  31. labels:
  32. app: terra2-terrad
  33. spec:
  34. containers:
  35. - args:
  36. - terrad
  37. - start
  38. image: terra2-image
  39. name: terra2-terrad
  40. ports:
  41. - containerPort: 26657
  42. - containerPort: 1317
  43. readinessProbe:
  44. httpGet:
  45. port: 26657
  46. resources: {}
  47. - name: terra2-deploy
  48. image: terra2-deploy
  49. command:
  50. - /bin/sh
  51. - -c
  52. - "sh /app/tools/deploy.sh && touch /app/tools/success && sleep infinity"
  53. readinessProbe:
  54. exec:
  55. command:
  56. - test
  57. - -e
  58. - "/app/tools/success"
  59. initialDelaySeconds: 5
  60. periodSeconds: 5
  61. restartPolicy: Always
  62. serviceName: terra2-terrad