-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.yaml
More file actions
51 lines (51 loc) · 1.61 KB
/
service.yaml
File metadata and controls
51 lines (51 loc) · 1.61 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
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: speed-proxy
spec:
template:
metadata:
annotations:
run.googleapis.com/container-dependencies: '{"speed-proxy":["otel-collector"]}'
spec:
containers:
- name: speed-proxy
image: IMAGE_PLACEHOLDER
ports:
- containerPort: 8080
env:
- name: API_KEY
valueFrom:
secretKeyRef:
name: speed-proxy-api-key
key: latest
- name: TOKEN_EXCHANGE_URL
value: "https://auth.MLAB_PROJECT_PLACEHOLDER.measurementlab.net/v0/token/integration"
- name: ALLOWED_ORIGIN
value: "ALLOWED_ORIGIN_PLACEHOLDER"
resources:
limits:
memory: 256Mi
cpu: "1"
- name: otel-collector
image: OTEL_IMAGE_PLACEHOLDER
env:
- name: PROMETHEUS_ENDPOINT
value: "https://prometheus-basicauth.MLAB_PROJECT_PLACEHOLDER.measurementlab.net/api/v1/write"
- name: PROMETHEUS_USER
valueFrom:
secretKeyRef:
name: prometheus-support-build-prom-auth-user
key: latest
- name: PROMETHEUS_PASSWORD
valueFrom:
secretKeyRef:
name: prometheus-support-build-prom-auth-pass
key: latest
startupProbe:
httpGet:
path: /
port: 13133
initialDelaySeconds: 0
periodSeconds: 1
failureThreshold: 10