pyth-price-client-js.yaml 735 B

1234567891011121314151617181920212223242526272829303132
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: pyth-price-client-js
  5. spec:
  6. selector:
  7. matchLabels:
  8. app: pyth-price-client-js
  9. serviceName: pyth-price-client-js
  10. replicas: 1
  11. template:
  12. metadata:
  13. labels:
  14. app: pyth-price-client-js
  15. spec:
  16. terminationGracePeriodSeconds: 0
  17. containers:
  18. - name: tests
  19. image: pyth-price-client-js
  20. command:
  21. - /bin/sh
  22. - -c
  23. - "npm run test:e2e && nc -lk 0.0.0.0 2000"
  24. readinessProbe:
  25. periodSeconds: 5
  26. failureThreshold: 300
  27. tcpSocket:
  28. port: 2000
  29. resources:
  30. limits:
  31. cpu: "2"
  32. memory: 1Gi