2021-09-06 17:24:55 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: blackbox-exporter
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: blackbox-exporter
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: blackbox-exporter
|
|
|
|
spec:
|
2021-09-11 03:30:38 +00:00
|
|
|
securityContext:
|
|
|
|
sysctls:
|
|
|
|
- name: net.ipv4.ping_group_range
|
|
|
|
value: "0 2147483647"
|
2021-09-06 17:24:55 +00:00
|
|
|
containers:
|
2021-09-11 03:30:38 +00:00
|
|
|
- name: blackbox-exporter
|
|
|
|
image: prom/blackbox-exporter
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: 128Mi
|
|
|
|
cpu: 100m
|
|
|
|
limits:
|
|
|
|
memory: 128Mi
|
2022-05-26 03:43:44 +00:00
|
|
|
cpu: 100m
|
2024-04-05 23:52:32 +00:00
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: true
|
|
|
|
capabilities:
|
|
|
|
add:
|
|
|
|
- NET_RAW
|
2021-09-11 03:30:38 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 9115
|
|
|
|
name: http-metrics
|
2021-09-06 17:24:55 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: blackbox-exporter
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: blackbox-exporter
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: blackbox-exporter
|
|
|
|
ports:
|
|
|
|
- name: http-metrics
|
|
|
|
port: 9115
|
2021-09-11 03:30:38 +00:00
|
|
|
targetPort: http-metrics
|