forked from newrelic/nri-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nri-flex-k8s.yml
79 lines (79 loc) · 2.01 KB
/
nri-flex-k8s.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
72
73
74
75
76
77
78
79
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nri-flex
namespace: default
labels:
name: nri-flex
spec:
selector:
matchLabels:
name: nri-flex
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
name: nri-flex
spec:
hostNetwork: true
hostPID: true
containers:
- name: nri-flex
image: newrelic/infrastructure:latest
imagePullPolicy: Always
env:
- name: NRIA_LICENSE_KEY
value: "YourNR-LicenseKey"
- name: NRIA_DISPLAY_NAME
valueFrom:
fieldRef:
apiVersion: "v1"
fieldPath: "spec.nodeName"
- name: NRK8S_NODE_NAME
valueFrom:
fieldRef:
apiVersion: "v1"
fieldPath: "spec.nodeName"
volumeMounts:
- mountPath: /host
name: host-volume
readOnly: true
- mountPath: /var/run/docker.sock
name: host-docker-socket
- mountPath: /etc/newrelic-infra/integrations.d/
name: nri-integration-cfg-volume
resources:
limits:
memory: 300M
requests:
cpu: 100m
memory: 100M
volumes:
- name: host-volume
hostPath:
path: /
- name: host-docker-socket
hostPath:
path: /var/run/docker.sock
- name: nri-default-integration-cfg-volume
configMap:
name: nri-default-integration-cfg
- name: nri-integration-cfg-volume
configMap:
name: nri-integration-cfg
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nri-integration-cfg # aimed to be safely overridden by users
namespace: default
data:
nri-flex.yml: |
integrations:
- name: nri-flex
config:
name: example
apis:
- event_type: ExampleSample
url: https://my-host:8080/admin/metrics.json