pyth-price-service.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: pyth-price-service
  6. labels:
  7. app: pyth-price-service
  8. spec:
  9. ports:
  10. - port: 8081
  11. name: prometheus
  12. protocol: TCP
  13. - port: 4200
  14. name: rest-api
  15. protocol: TCP
  16. clusterIP: None
  17. selector:
  18. app: pyth-price-service
  19. ---
  20. apiVersion: apps/v1
  21. kind: Deployment
  22. metadata:
  23. name: pyth-price-service
  24. spec:
  25. selector:
  26. matchLabels:
  27. app: pyth-price-service
  28. serviceName: pyth-price-service
  29. replicas: 2
  30. template:
  31. metadata:
  32. labels:
  33. app: pyth-price-service
  34. spec:
  35. terminationGracePeriodSeconds: 0
  36. containers:
  37. - name: pyth-price-service
  38. image: pyth-price-service
  39. ports:
  40. - containerPort: 8081
  41. name: prometheus
  42. protocol: TCP
  43. - containerPort: 4200
  44. name: rest-api
  45. protocol: TCP
  46. readinessProbe:
  47. httpGet:
  48. path: "/ready"
  49. port: 4200
  50. initialDelaySeconds: 10
  51. periodSeconds: 1
  52. failureThreshold: 1
  53. livenessProbe:
  54. httpGet:
  55. path: "/live"
  56. port: 4200
  57. initialDelaySeconds: 20
  58. periodSeconds: 30
  59. timeoutSeconds: 30
  60. env:
  61. - name: SPY_SERVICE_HOST
  62. value: spy:7072
  63. - name: SPY_SERVICE_FILTERS
  64. value: '[{"chain_id":1,"emitter_address":"71f8dcb863d176e2c420ad6610cf687359612b6fb392e0642b0ca6b1f186aa3b"}]'
  65. - name: REST_PORT
  66. value: "4200"
  67. - name: PROM_PORT
  68. value: "8081"
  69. - name: READINESS_SPY_SYNC_TIME_SECONDS
  70. value: "5"
  71. - name: READINESS_NUM_LOADED_SYMBOLS
  72. value: "6"
  73. - name: LOG_LEVEL
  74. value: debug