-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtelegraf.yml
43 lines (42 loc) · 876 Bytes
/
telegraf.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
kind: Deployment
apiVersion: apps/v1
metadata:
name: telegraf
spec:
replicas: 1
selector:
matchLabels:
app: telegraf
template:
metadata:
labels:
app: telegraf
spec:
containers:
- name: telegraf
image: telegraf:latest
volumeMounts:
- mountPath: /etc/telegraf/telegraf.conf
name: telegraf-data
volumes:
- name: telegraf-data
hostPath:
path: /mnt/data/telegraf/telegraf.conf
type: File
---
apiVersion: v1
kind: Service
metadata:
name: telegraf
labels:
app: telegraf
spec:
ports:
- port: 8125
name: statsd
- port: 8092
name: udp
- port: 8094
name: tcp
selector:
app: telegraf