-
Notifications
You must be signed in to change notification settings - Fork 4
/
run-service-staging.yaml
56 lines (55 loc) · 1.66 KB
/
run-service-staging.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Dev Cloud Run
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: staging-comfy-backend
spec:
template:
metadata:
annotations:
autoscaling.knative.dev/min-scale: "1"
autoscaling.knative.dev/minScale: '1'
autoscaling.knative.dev/maxScale: '2'
run.googleapis.com/cpu-throttling: 'false'
run.googleapis.com/startup-cpu-boost: 'false'
spec:
containers:
- image: registry-backend-image-substitute
env:
- name: DRIP_ENV
value: staging
- name: DB_CONNECTION_STRING
valueFrom:
secretKeyRef:
key: 1
name: STAGING_SUPABASE_CONNECTION_STRING
- name: JWT_SECRET
valueFrom:
secretKeyRef:
key: 1
name: STAGING_JWT_SECRET
- name: PROJECT_ID
value: dreamboothy
# TODO(robinhuang): Switch to a list of strings
- name: CORS_ORIGIN
value: https://staging.comfyregistry.org
- name: SECRET_SCANNER_URL
valueFrom:
secretKeyRef:
key: 1
name: SECURITY_SCANNER_CLOUD_FUNCTION_URL
- name: SECURITY_COUNCIL_DISCORD_WEBHOOK
valueFrom:
secretKeyRef:
key: 1
name: SECURITY_COUNCIL_DISCORD_WEBHOOK
- name: ALGOLIA_APP_ID
valueFrom:
secretKeyRef:
key: 1
name: STAGING_ALGOLIA_APP_ID
- name: ALGOLIA_API_KEY
valueFrom:
secretKeyRef:
key: 1
name: STAGING_ALGOLIA_API_KEY