2
0

v2_input_nobuild.yaml 928 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. version: v2
  2. name: "test-app"
  3. image:
  4. repository: nginx
  5. tag: latest
  6. services:
  7. - name: example-web
  8. type: web
  9. run: node index.js
  10. port: 8080
  11. cpuCores: 0.1
  12. ramMegabytes: 256
  13. gpu: {}
  14. autoscaling:
  15. enabled: true
  16. minInstances: 1
  17. maxInstances: 3
  18. memoryThresholdPercent: 60
  19. cpuThresholdPercent: 60
  20. domains:
  21. - name: test1.example.com
  22. - name: test2.example.com
  23. healthCheck:
  24. enabled: true
  25. httpPath: /healthz
  26. - name: example-wkr
  27. type: worker
  28. run: echo 'work'
  29. port: 80
  30. cpuCores: 0.1
  31. ramMegabytes: 256
  32. gpu: {}
  33. instances: 1
  34. - name: example-job
  35. type: job
  36. run: echo 'hello world'
  37. allowConcurrent: true
  38. cpuCores: 0.1
  39. ramMegabytes: 256
  40. gpu: {}
  41. cron: "*/10 * * * *"
  42. timeoutSeconds: 60
  43. suspendCron: false
  44. predeploy:
  45. type: job
  46. run: ls
  47. gpu: {}
  48. env:
  49. PORT: 8080
  50. NODE_ENV: production