-
Notifications
You must be signed in to change notification settings - Fork 11
/
script-exporter.yml
72 lines (69 loc) · 2.12 KB
/
script-exporter.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
66
67
68
69
70
71
72
apiVersion: apps/v1
kind: Deployment
metadata:
name: script-exporter
spec:
# Run two so that we can make sure we have failover.
replicas: 2
selector:
matchLabels:
run: script-exporter
strategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
run: script-exporter
annotations:
prometheus.io/scrape: 'true'
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: run
operator: In
values:
- script-exporter
topologyKey: kubernetes.io/hostname
containers:
- name: script-exporter
image: measurementlab/script-exporter-support:sandbox-soltesz-add-ndt7
args:
- -config.file=/etc/script_exporter/script_exporter.yml
env:
- name: LOGX_DEBUG
value: 'true'
- name: MONITORING_SIGNER_KEY
value: /keys/monitoring-signer-key.json
- name: LOCATE_URL
value: https://locate-dot-{{LOCATE_PROJECT}}.appspot.com/v2/platform/monitoring/
ports:
- containerPort: 9172
volumeMounts:
- mountPath: /etc/script_exporter
name: script-exporter-config
- mountPath: /keys
name: script-exporter-keys
# The script-exporter will only be scheduled onto nodes that we labeled
# as having a static outbound IP.
nodeSelector:
outbound-ip: static
# We can also taint nodes with static outbound IPs so that services that
# do not require a static IP aren't scheduled to that node. This
# deployment, however, will tolerate that taint.
tolerations:
# TODO: something about this prevents the pods from updating.
- key: "outbound-ip"
value: "static"
effect: "NoSchedule"
volumes:
- name: script-exporter-config
configMap:
name: script-exporter-config
- name: script-exporter-keys
secret:
secretName: script-exporter-secret