forked from neuvector/prometheus-exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprometheus.yml
42 lines (42 loc) · 809 Bytes
/
prometheus.yml
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
kind: Deployment
apiVersion: apps/v1
metadata:
name: prometheus-deployment
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: prometheus
template:
metadata:
labels:
app: prometheus
spec:
containers:
- name: prometheus
image: prom/prometheus
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus/prometheus.yml
subPath: prom-config.yml
ports:
- containerPort: 9090
volumes:
- name: config-volume
configMap:
name: prometheus-cm
---
kind: Service
apiVersion: v1
metadata:
name: prometheus-service
namespace: default
spec:
selector:
app: prometheus
type: NodePort
ports:
- name: promui
protocol: TCP
port: 9090