forked from kevinniu666/prometheusoperator-blackbox_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blackbox.yaml
49 lines (48 loc) · 1.15 KB
/
blackbox.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
apiVersion: apps/v1beta2
kind: Deployment
metadata:
labels:
app: blackbox
name: blackbox
namespace: monitoring
spec:
replicas: 2
selector:
matchLabels:
app: blackbox
template:
metadata:
labels:
app: blackbox
spec:
containers:
- image: prom/blackbox-exporter:master
name: blackbox
args:
- --config.file=/etc/blackbox_exporter/blackbox.yml
ports:
- containerPort: 9115
name: http
readinessProbe:
httpGet:
path: /probe?target=https://www.baidu.com/&module=http_2xx
port: http
initialDelaySeconds: 10
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 100m
memory: 100Mi
volumeMounts:
- mountPath: /etc/blackbox_exporter/
name: blackbox-config
readOnly: false
nodeSelector:
# beta.kubernetes.io/os: linux
dedicatedfor: publicservice
volumes:
- configMap:
name: blackbox-config
name: blackbox-config