-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblackbox_exporter.yaml
70 lines (70 loc) · 1.66 KB
/
blackbox_exporter.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
64
65
66
67
68
69
70
kind: Service
apiVersion: v1
metadata:
name: blackbox-exporter01-ch3
spec:
selector:
app: blackbox-exporter01-ch3
ports:
- protocol: TCP
port: 9115
targetPort: 9115
type: ClusterIP
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: blackbox-exporter01-ch3
labels:
app: blackbox-exporter01-ch3
spec:
replicas: 1
selector:
matchLabels:
app: blackbox-exporter01-ch3
template:
metadata:
labels:
app: blackbox-exporter01-ch3
spec:
containers:
- name: blackbox-exporter01-ch3
image: <<registry repo>>
volumeMounts:
- mountPath: /etc/blackbox_exporter/config.yml
name: blackbox-exporter01-ch3-config
readOnly: true
- mountPath: /opt/certs
name: certs
readOnly: true
securityContext:
privileged: false
capabilities:
drop:
- CHOWN
- DAC_OVERRIDE
- FOWNER
- FSETID
- SETUID
- SETGID
- SYS_CHROOT
- MKNOD
args:
- --log.level=debug
- --config.file=/etc/blackbox_exporter/config.yml
ports:
- containerPort: 9115
volumes:
- hostPath:
path: /mnt/configs/prometheus_exporters/blackbox-exporter01-ch3.yml
type: File
name: blackbox-exporter01-ch3-config
- hostPath:
path: /mnt/configs/certs
type: Directory
name: certs
dnsPolicy: Default
imagePullSecrets:
- name: regsecret
nodeSelector:
kubernetes.io/hostname: <<host>>