1
0
Fork 0

install blackbox exporter and improve hc

This commit is contained in:
Tobias Brunner 2019-08-01 16:10:02 +02:00
parent b22ff9f6ae
commit 1341ebf585
2 changed files with 36 additions and 0 deletions

View File

@ -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

View File

@ -8,6 +8,7 @@ spec:
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
startingDeadlineSeconds: 200
jobTemplate:
spec:
template: