-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
kubernetes.yaml
55 lines (55 loc) · 1.26 KB
/
kubernetes.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: promcheck-exporter
namespace: monitoring
labels:
app: promcheck-exporter
spec:
replicas: 1
template:
metadata:
name: promcheck-exporter
labels:
app: promcheck-exporter
spec:
containers:
- name: promcheck-exporter
image: ghcr.io/cbrgm/promcheck:latest
imagePullPolicy: Always
ports:
- name: internal
containerPort: 9212
args:
- "--prometheus.url=http://0.0.0.0:9093" # change me to my cluster dns name
- "--exporter.enabled=true"
- "--exporter.addr=0.0.0.0:9212"
- "--exporter.interval=300"
- "--log.level=info"
resources:
limits:
cpu: 250m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
restartPolicy: Always
selector:
matchLabels:
app: promcheck-exporter
---
apiVersion: v1
kind: Service
metadata:
name: promcheck-exporter
namespace: monitoring
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9212'
spec:
selector:
app: promcheck-exporter
type: ClusterIP
ports:
- port: 9212
targetPort: 9212