2023-10-04 17:46:25 +00:00
|
|
|
---
|
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: Probe
|
|
|
|
metadata:
|
|
|
|
name: ping-plotter
|
|
|
|
spec:
|
|
|
|
prober:
|
|
|
|
path: /metrics
|
|
|
|
url: ping-exporter
|
|
|
|
targets:
|
|
|
|
staticConfig:
|
|
|
|
static:
|
|
|
|
- 1.1.1.1
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: ping-exporter
|
|
|
|
spec:
|
|
|
|
revisionHistoryLimit: 0
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: ping-exporter
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: ping-exporter
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: ping-exporter
|
2024-08-21 04:17:05 +00:00
|
|
|
image: mirror.gcr.io/czerwonk/ping_exporter
|
2023-10-04 17:46:25 +00:00
|
|
|
args:
|
|
|
|
- ./ping_exporter
|
|
|
|
- '1.1.1.1'
|
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- NET_RAW
|
|
|
|
nodeSelector:
|
2024-08-23 04:58:26 +00:00
|
|
|
node-role.kubernetes.io/control-plane: ''
|
2023-10-04 17:46:25 +00:00
|
|
|
tolerations:
|
2024-08-23 04:58:26 +00:00
|
|
|
- key: node-role.kubernetes.io/control-plane
|
|
|
|
operator: Equal
|
|
|
|
value: ''
|
|
|
|
effect: NoSchedule
|
2024-08-21 04:11:06 +00:00
|
|
|
topologySpreadConstraints:
|
|
|
|
- maxSkew: 1
|
|
|
|
topologyKey: topology.kubernetes.io/zone
|
|
|
|
whenUnsatisfiable: DoNotSchedule
|
|
|
|
labelSelector:
|
|
|
|
matchLabels:
|
|
|
|
app: ping-exporter
|
2023-10-04 17:46:25 +00:00
|
|
|
---
|
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: ping-exporter
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
port: 80
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: 9427
|
|
|
|
selector:
|
|
|
|
app: ping-exporter
|