forked from VDuda/fluentd-logzio-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
daemonset.json
83 lines (83 loc) · 1.9 KB
/
daemonset.json
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"apiVersion": "extensions/v1beta1",
"kind": "DaemonSet",
"metadata": {
"name": "fluentd-logzio",
"labels": {
"tier": "monitoring",
"app": "fluentd-logzio",
"version": "v1"
}
},
"spec": {
"template": {
"metadata": {
"labels": {
"name": "fluentd-logzio"
}
},
"spec": {
"hostPID": true,
"hostIPC": true,
"hostNetwork": true,
"containers": [
{
"resources": {
"requests": {
"cpu": 0.15
}
},
"securityContext": {
"privileged": true
},
"env": [
{
"name": "LOG_PATH",
"value": "/var/log/containers/*.log"
},
{
"name": "LOGZIO_URL",
"value": "_YOUR_ENDPOINT_URL_"
},
{
"name": "LOGZIO_TOKEN",
"value": "_YOUR_TOKEN_"
},
{
"name": "LOGZIO_TYPE",
"value": "_YOUR_LOG_TYPE_"
}
],
"image": "_YOUR_DOCKER_IMAGE_TAG_",
"name": "fluentd-logzio",
"volumeMounts": [
{
"name": "varlog",
"mountPath": "/var/log"
},
{
"name": "varlibdockercontainers",
"mountPath": "/var/lib/docker/containers"
}
]
}
],
"volumes": [
{
"name": "varlog",
"hostPath": {
"path": "/var/log"
}
},
{
"name": "varlibdockercontainers",
"hostPath": {
"path": "/var/lib/docker/containers",
"readOnly": true
}
}
]
}
}
}
}