-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapplication-metadata.yml
More file actions
113 lines (113 loc) · 3.49 KB
/
application-metadata.yml
File metadata and controls
113 lines (113 loc) · 3.49 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: application
annotations:
run.googleapis.com/ingress: all
spec:
template:
metadata:
annotations:
autoscaling.knative.dev/minScale: "1"
autoscaling.knative.dev/maxScale: "5"
run.googleapis.com/vpc-access-egress: private-ranges-only
run.googleapis.com/vpc-access-connector: projects/<PROJECT_NAME>/locations/<SERVICE_REGION>/connectors/application-vpc-access
run.googleapis.com/sessionAffinity: "true"
spec:
containers:
- image: "<IMAGE_NAME>"
env:
- name: NODE_ENV
value: <ENVIRONMENT>
- name: JUDGE0_API_KEY
valueFrom:
secretKeyRef:
key: latest
name: JUDGE0_API_KEY
- name: TWILIO_CONVERSATIONS_SID
valueFrom:
secretKeyRef:
key: latest
name: TWILIO_CONVERSATIONS_SID
- name: DOMAIN
valueFrom:
secretKeyRef:
key: latest
name: DOMAIN
- name: DATABASE_NAME
valueFrom:
secretKeyRef:
key: latest
name: DATABASE_NAME
- name: TWILIO_API_KEY
valueFrom:
secretKeyRef:
key: latest
name: TWILIO_API_KEY
- name: DATABASE_HOST
valueFrom:
secretKeyRef:
key: latest
name: DATABASE_HOST
- name: DATABASE_PORT
valueFrom:
secretKeyRef:
key: latest
name: DATABASE_PORT
- name: TWILIO_API_SECRET
valueFrom:
secretKeyRef:
key: latest
name: TWILIO_API_SECRET
- name: TWILIO_RESET_PASSWORD_SID
valueFrom:
secretKeyRef:
key: latest
name: TWILIO_RESET_PASSWORD_SID
- name: TWILIO_VERIFICATION_SID
valueFrom:
secretKeyRef:
key: latest
name: TWILIO_VERIFICATION_SID
- name: SESSION_SECRET
valueFrom:
secretKeyRef:
key: latest
name: SESSION_SECRET
- name: DATABASE_USERNAME
valueFrom:
secretKeyRef:
key: latest
name: DATABASE_USERNAME
- name: TWILIO_AUTH_TOKEN
valueFrom:
secretKeyRef:
key: latest
name: TWILIO_AUTH_TOKEN
- name: TWILIO_ACCOUNT_SID
valueFrom:
secretKeyRef:
key: latest
name: TWILIO_ACCOUNT_SID
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
key: latest
name: DATABASE_PASSWORD
- name: REDIS_HOST
valueFrom:
secretKeyRef:
key: latest
name: REDIS_HOST
- name: REDIS_PORT
valueFrom:
secretKeyRef:
key: latest
name: REDIS_PORT
resources:
limits:
cpu: 1000m
memory: 1Gi
traffic:
- percent: 100
latestRevision: true