-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathes-fluentd-ds.yaml
57 lines (57 loc) · 1.47 KB
/
es-fluentd-ds.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
53
54
55
56
57
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: fluentd-elasticsearch
labels:
k8s-app: fluentd-logging
spec:
template:
metadata:
labels:
k8s-app: fluentd-logging
name: fluentd-logging
spec:
containers:
- name: fluentd-elasticsearch
image: kayrus/fluentd-elasticsearch:1.20
imagePullPolicy: Always
# suppress "info" log level
args:
- -q
resources:
limits:
memory: 1024Mi
requests:
cpu: 100m
memory: 1024Mi
volumeMounts:
- name: var-log
mountPath: /var/log
- name: run-log
mountPath: /run/log
- name: var-lib-docker-containers
mountPath: /var/lib/docker/containers
readOnly: true
- name: localdata-docker-containers
mountPath: /localdata/docker/containers
readOnly: true
- name: fluentd-config
mountPath: /etc/td-agent
readOnly: true
terminationGracePeriodSeconds: 30
volumes:
- name: var-log
hostPath:
path: /var/log
- name: run-log
hostPath:
path: /run/log
- name: var-lib-docker-containers
hostPath:
path: /var/lib/docker/containers
- name: localdata-docker-containers
hostPath:
path: /localdata/docker/containers
- name: fluentd-config
configMap:
name: fluentd-config