forked from mumoshu/kube-fluentd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfluentd.daemonset.yaml
84 lines (83 loc) · 2.41 KB
/
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
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
84
# Originally copied from: https://github.com/kubernetes/kubernetes/tree/master/cluster/saltbase/salt/fluentd-gcp
# Also see the post: http://blog.kubernetes.io/2015/06/cluster-level-logging-with-kubernetes.html
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: fluentd-cloud-logging
namespace: kube-system
spec:
template:
metadata:
labels:
k8s-app: fluentd-logging
spec:
tolerations:
- operator: Exists
effect: NoSchedule
- operator: Exists
effect: NoExecute
- operator: Exists
dnsPolicy: Default
containers:
- name: fluentd-cloud-logging
image: mumoshu/kube-fluentd:0.14.1
resources:
limits:
memory: 200Mi
requests:
# Any change here should be accompanied by a proportional change in CPU
# requests of other per-node add-ons (e.g. kube-proxy).
cpu: 80m
memory: 200Mi
env:
- name: FLUENTD_ARGS
value: -v
- name: GOOGLE_FLUENTD_PRIVATE_KEY_ID
valueFrom:
secretKeyRef:
name: fluentd
key: private.key.id
- name: GOOGLE_FLUENTD_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: fluentd
key: private.key
- name: GOOGLE_FLUENTD_PROJECT_ID
valueFrom:
secretKeyRef:
name: fluentd
key: project.id
- name: GOOGLE_FLUENTD_CLIENT_EMAIL
valueFrom:
secretKeyRef:
name: fluentd
key: client.email
- name: GOOGLE_FLUENTD_CLIENT_ID
valueFrom:
secretKeyRef:
name: fluentd
key: client.id
- name: GOOGLE_FLUENTD_CLIENT_X509_CERT_URL
valueFrom:
secretKeyRef:
name: fluentd
key: client.x509.cert.url
volumeMounts:
- name: varlog
mountPath: /var/log
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
- name: mntsda1
mountPath: /mnt/sda1
terminationGracePeriodSeconds: 30
volumes:
- name: varlog
hostPath:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: mntsda1
hostPath:
path: /mnt/sda1