-
Notifications
You must be signed in to change notification settings - Fork 29
/
nv_exporter.yml
46 lines (44 loc) · 1.16 KB
/
nv_exporter.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
43
44
45
46
apiVersion: v1
kind: Service
metadata:
name: neuvector-svc-prometheus-exporter
namespace: neuvector
spec:
ports:
- port: 8068
name: prometheus-exporter
protocol: TCP
selector:
app: neuvector-prometheus-exporter-pod
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: neuvector-prometheus-exporter-pod
namespace: neuvector
spec:
replicas: 1
selector:
matchLabels:
app: neuvector-prometheus-exporter-pod
template:
metadata:
labels:
app: neuvector-prometheus-exporter-pod
spec:
containers:
- name: neuvector-prometheus-exporter-pod
image: neuvector/prometheus-exporter:latest
imagePullPolicy: Always
env:
- name: CTRL_API_SERVICE
value: neuvector-svc-controller.neuvector:10443
- name: CTRL_USERNAME
value: admin
- name: CTRL_PASSWORD
value: admin
- name: EXPORTER_PORT
value: "8068"
# - name: EXPORTER_METRICS
# value: summary,conversation,enforcer,host,admission,image_vulnerability,container_vulnerability,log
restartPolicy: Always