-
Notifications
You must be signed in to change notification settings - Fork 7
/
cloud_run-service.yml
65 lines (56 loc) · 1.74 KB
/
cloud_run-service.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
57
58
59
60
61
62
63
64
65
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: gitpanda
spec:
template:
metadata:
annotations:
run.googleapis.com/client-name: cloud-console
autoscaling.knative.dev/minScale: '0'
autoscaling.knative.dev/maxScale: '10'
spec:
containerConcurrency: 1
timeoutSeconds: 5
serviceAccountName: gitpanda-app@gitpanda.iam.gserviceaccount.com
containers:
- image: us-docker.pkg.dev/gitpanda/gitpanda/app:sha-__GITHUB_SHA__
ports:
- name: http1
containerPort: 8000
resources:
limits:
cpu: '1'
memory: 128Mi
env:
- name: GITLAB_BASE_URL
value: https://gitlab.com
- name: GITLAB_API_ENDPOINT
value: https://gitlab.com/api/v4
- name: TRUNCATE_LINES
value: "5"
# Get credentials from SecretManager
# c.f. https://cloud.google.com/run/docs/configuring/secrets
- name: GITLAB_PRIVATE_TOKEN
valueFrom:
secretKeyRef:
key: latest
name: GITLAB_PRIVATE_TOKEN
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
key: latest
name: SENTRY_DSN
- name: SLACK_OAUTH_ACCESS_TOKEN
valueFrom:
secretKeyRef:
key: latest
name: SLACK_OAUTH_ACCESS_TOKEN
- name: SLACK_VERIFICATION_TOKEN
valueFrom:
secretKeyRef:
key: latest
name: SLACK_VERIFICATION_TOKEN
traffic:
- percent: 100
latestRevision: true