-
Notifications
You must be signed in to change notification settings - Fork 0
/
telegraf.yaml
53 lines (49 loc) · 886 Bytes
/
telegraf.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
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-telegraf
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
nfs:
server: 192.168.1.30
path: /k8s-nfs/telegraf
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-telegraf
spec:
accessModes:
- ReadWriteMany
storageClassName: ""
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: telegraf
spec:
selector:
matchLabels:
app: telegraf
replicas: 1
template:
metadata:
labels:
app: telegraf
spec:
containers:
- name: telegraf
image: een625/telegraf-snmp:latest
volumeMounts:
- name: nfs-telegraf
mountPath: "/etc/telegraf"
volumes:
- name: nfs-telegraf
persistentVolumeClaim:
claimName: nfs-telegraf