forked from newrelic/nri-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnri-flex-k8s.yml
56 lines (56 loc) · 1.41 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
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:
containers:
- name: nri-flex
image: "YourDockerUserName/nri-flex-YourCustomFlexImage"
imagePullPolicy: Always
env:
- name: NRIA_LICENSE_KEY
value: "YourNR-LicenseKey"
- name: CONTAINER_DISCOVERY
value: "true"
### Sync integrations dynamically from your git repository
# - name: GIT_REPO
# value: "https://github.com/userName/repoName"
# - name: GIT_USER
# value: "myGithubUser"
# - name: GIT_TOKEN
# value: "myGithubToken"
volumeMounts:
- name: dockersock
mountPath: /var/run/docker.sock
readOnly: true
- name: proc
mountPath: /host/proc
readOnly: true
resources:
limits:
memory: 150M
requests:
cpu: 100m
memory: 30M
hostNetwork: true
hostPID: true
volumes:
- name: dockersock
hostPath:
path: /var/run/docker.sock
- name: proc
hostPath:
path: /proc