-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcloudrun-service.yaml
More file actions
37 lines (36 loc) · 1010 Bytes
/
Copy pathcloudrun-service.yaml
File metadata and controls
37 lines (36 loc) · 1010 Bytes
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
# Cloud Run Service Configuration
# Free Tier Optimized
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: ai-interviewer-adk
labels:
cloud.googleapis.com/location: us-central1
spec:
template:
metadata:
annotations:
# Free tier: min 0 instances (scale to zero)
autoscaling.knative.dev/minScale: "0"
autoscaling.knative.dev/maxScale: "1"
# Free tier: 256MB memory, 1 CPU
run.googleapis.com/cpu-throttling: "true"
spec:
containerConcurrency: 10
timeoutSeconds: 300
containers:
- image: gcr.io/PROJECT_ID/ai-interviewer-adk:latest
ports:
- containerPort: 8080
resources:
limits:
memory: "256Mi"
cpu: "1"
env:
- name: GOOGLE_API_KEY
valueFrom:
secretKeyRef:
name: google-api-key
key: latest
- name: LOG_LEVEL
value: "INFO"