-
Notifications
You must be signed in to change notification settings - Fork 0
/
fluentd-daemonset.yaml
43 lines (43 loc) · 1020 Bytes
/
fluentd-daemonset.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: fluentd
spec:
template:
metadata:
labels:
app: fluentd
spec:
terminationGracePeriodSeconds: 30
containers:
- name: fluentd
image: better/fluentd-k8s
env:
- name: ES_HOST
valueFrom:
secretKeyRef:
name: es
key: host
- name: ES_PORT
valueFrom:
secretKeyRef:
name: es
key: port
- name: ES_USERNAME
valueFrom:
secretKeyRef:
name: es
key: username
- name: ES_PASSWORD
valueFrom:
secretKeyRef:
name: es
key: password
volumeMounts:
- name: docker
mountPath: /var/lib/docker/containers
readOnly: true
volumes:
- name: docker
hostPath:
path: /var/lib/docker/containers