forked from Unstructured-IO/unstructured-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
porter.yaml
33 lines (33 loc) · 902 Bytes
/
porter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: v2
name: unstructured-api
services:
- name: unstructured-api
run: "docker run -p 80:8000 --gpus all --rm --name unstructured-gpu unstructured-gpu"
type: web
instances: 1
cpuCores: 1
ramMegabytes: 2400
terminationGracePeriodSeconds: 30
port: 8000
autoscaling:
enabled: true
minInstances: 1
maxInstances: 10
cpuThresholdPercent: 50
memoryThresholdPercent: 50
domains:
- name: unstructured-api-86effc1e79be1d31.onporter.run
healthCheck:
enabled: true
httpPath: /healthcheck
ingressAnnotations:
nginx.ingress.kubernetes.io/proxy-body-size: 1g
nginx.ingress.kubernetes.io/proxy-connect-timeout: '"300"'
nginx.ingress.kubernetes.io/proxy-read-timeout: '"300"'
nginx.ingress.kubernetes.io/proxy-send-timeout: '"300"'
build:
context: ./
method: docker
dockerfile: ./Dockerfile
env:
UNSTRUCTURED_MEMORY_FREE_MINIMUM_MB: "256"