-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
blackbox_prober.yaml
63 lines (63 loc) · 1.28 KB
/
blackbox_prober.yaml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: blackbox-prober
namespace: prow-monitoring
labels:
app: blackbox-prober
spec:
replicas: 1
template:
metadata:
labels:
app: blackbox-prober
spec:
containers:
- name: blackbox-prober
args:
- --config.file=/etc/config/prober.yaml
image: prom/blackbox-exporter:v0.15.1
volumeMounts:
- name: config
mountPath: /etc/config/
volumes:
- name: config
configMap:
name: blackbox-prober-config
---
apiVersion: v1
kind: ConfigMap
metadata:
name: blackbox-prober-config
namespace: prow-monitoring
labels:
app: blackbox-prober
data:
prober.yaml: |-
modules:
http_2xx:
prober: http
timeout: 5s
http:
# valid_status_codes defaults to 2xx
method: GET
no_follow_redirects: false
fail_if_ssl: false
fail_if_not_ssl: true
preferred_ip_protocol: "ip4" # Defaults to ip6
---
apiVersion: v1
kind: Service
metadata:
name: blackbox-prober
namespace: prow-monitoring
labels:
app: blackbox-prober
spec:
type: ClusterIP
ports:
- name: blackbox-prober
port: 80
targetPort: 9115
selector:
app: blackbox-prober