-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfluent-bit-ds-loggly.yaml
58 lines (58 loc) · 1.53 KB
/
fluent-bit-ds-loggly.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: fluent-bit
namespace: monitoring
labels:
k8s-app: fluent-bit-logging
version: v1
kubernetes.io/cluster-service: "true"
spec:
template:
metadata:
labels:
k8s-app: fluent-bit-logging
version: v1
kubernetes.io/cluster-service: "true"
spec:
containers:
- name: fluent-bit
image: fluent/fluent-bit:0.13.7
imagePullPolicy: IfNotPresent
env:
- name: LOGGLY_HOSTNAME
value: "logs-01.loggly.com"
- name: LOGGLY_TAG
valueFrom:
secretKeyRef:
name: fluent-bit-secrets
key: loggly_tag
- name: LOGGLY_TOKEN
valueFrom:
secretKeyRef:
name: fluent-bit-secrets
key: loggly_token
volumeMounts:
- name: varlog
mountPath: /var/log
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
- name: fluent-bit-config
mountPath: /fluent-bit/etc/
terminationGracePeriodSeconds: 10
volumes:
- name: varlog
hostPath:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: fluent-bit-config
configMap:
name: fluent-bit-config
serviceAccountName: fluent-bit
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule