This repository has been archived by the owner on Jun 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
new-relic-fluent-plugin.yml
71 lines (71 loc) · 1.85 KB
/
new-relic-fluent-plugin.yml
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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: newrelic-logging
namespace: default
labels:
k8s-app: newrelic-logging
version: v1
kubernetes.io/cluster-service: "true"
name: newrelic-logging
app.kubernetes.io/name: newrelic-logging
spec:
selector:
matchLabels:
name: newrelic-logging
template:
metadata:
labels:
k8s-app: newrelic-logging
version: v1
kubernetes.io/cluster-service: "true"
name: newrelic-logging
app.kubernetes.io/name: newrelic-logging
spec:
serviceAccountName: newrelic-logging
containers:
- name: newrelic-logging
env:
- name: ENDPOINT
value : "https://log-api.newrelic.com/log/v1"
- name: SOURCE
value: "kubernetes"
- name: LICENSE_KEY
value: <YOUR_LICENSE_KEY>
- name: CLUSTER_NAME
value: <YOUR CLUSTER NAME>
- name: BUFFER_SIZE
value: "256000"
- name: MAX_RECORDS
value: "500"
- name: LOG_LEVEL
value: "info"
- name: PATH
value: "/var/log/containers/*.log"
image: newrelic/newrelic-fluentbit-output:1.2.1
command:
- /fluent-bit/bin/fluent-bit
- -c
- /fluent-bit/etc/fluent-bit.conf
- -e
- /fluent-bit/bin/out_newrelic.so
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 250m
memory: 64Mi
volumeMounts:
- name: config
mountPath: /fluent-bit/etc
- name: varlog
mountPath: /var
terminationGracePeriodSeconds: 10
volumes:
- name: config
configMap:
name: fluent-bit-config
- name: varlog
hostPath:
path: /var