-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcloudrun.yaml
More file actions
43 lines (43 loc) · 1.11 KB
/
cloudrun.yaml
File metadata and controls
43 lines (43 loc) · 1.11 KB
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
34
35
36
37
38
39
40
41
42
43
# Google Cloud Run deployment configuration
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: videocraft-backend
annotations:
run.googleapis.com/ingress: all
spec:
template:
metadata:
annotations:
run.googleapis.com/execution-environment: gen2
run.googleapis.com/cpu-throttling: "false"
spec:
containerConcurrency: 80
timeoutSeconds: 300
serviceAccountName: videocraft-service-account
containers:
- image: gcr.io/PROJECT_ID/videocraft-backend
ports:
- name: http1
containerPort: 8080
env:
- name: PORT
value: "8080"
- name: DEBUG
value: "false"
- name: MAX_UPLOAD_SIZE
value: "104857600"
- name: CORS_ORIGINS
value: '["https://videocraft.vercel.app"]'
resources:
limits:
cpu: 1000m
memory: 2Gi
startupProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 10
timeoutSeconds: 5
periodSeconds: 10
failureThreshold: 3