-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudrun.yml
56 lines (56 loc) · 1.54 KB
/
cloudrun.yml
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
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: aomori
namespace: '977982558435'
labels:
cloud.googleapis.com/location: asia-southeast1
annotations:
run.googleapis.com/launch-stage: GA
run.googleapis.com/description: aomori project
run.googleapis.com/ingress: all
spec:
template:
metadata:
annotations:
autoscaling.knative.dev/minScale: '0'
autoscaling.knative.dev/maxScale: '100'
run.googleapis.com/client-name: gcloud
run.googleapis.com/client-version: 434.0.0
labels:
run.googleapis.com/startupProbeType: Default
spec:
containerConcurrency: 80
containers:
- args:
- aomori.main:app
- --host
- 0.0.0.0
- --port
- '8080'
env:
- name: IS_DEBUG
value: 'False'
- name: API_KEY
value: 1103371a-e057-4874-b5b9-e96417c711f3
- name: DEFAULT_MODEL_PATH
value: ./sample_model/lin_reg_california_housing_model.joblib
image: asia-southeast1-docker.pkg.dev/jakartaresearch/aomori/aomori:latest
ports:
- containerPort: 8080
name: http1
resources:
limits:
cpu: '1'
memory: 256Mi
startupProbe:
failureThreshold: 1
periodSeconds: 240
tcpSocket:
port: 8080
timeoutSeconds: 240
serviceAccountName: [email protected]
timeoutSeconds: 300
traffic:
- latestRevision: true
percent: 100