install blackbox exporter and improve hc
This commit is contained in:
parent
b22ff9f6ae
commit
1341ebf585
|
@ -0,0 +1,35 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: blackbox-exporter
|
||||
namespace: mon
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: blackbox-exporter
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: blackbox-exporter
|
||||
spec:
|
||||
containers:
|
||||
- image: prom/blackbox-exporter:master
|
||||
name: blackbox-exporter
|
||||
ports:
|
||||
- containerPort: 9115
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: blackbox-exporter
|
||||
namespace: mon
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 9115
|
||||
protocol: TCP
|
||||
targetPort: 9115
|
||||
selector:
|
||||
app: blackbox-exporter
|
||||
type: ClusterIP
|
|
@ -8,6 +8,7 @@ spec:
|
|||
concurrencyPolicy: Forbid
|
||||
successfulJobsHistoryLimit: 1
|
||||
failedJobsHistoryLimit: 1
|
||||
startingDeadlineSeconds: 200
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
|
|
Reference in New Issue