-
Notifications
You must be signed in to change notification settings - Fork 73
/
values.yaml
513 lines (444 loc) · 11.1 KB
/
values.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
replicaCount: 1
deploymentStrategy:
type: Recreate
imagePullSecrets: []
image:
repository: netdata/netdata
tag: "{{ .Chart.AppVersion }}"
pullPolicy: Always
sd:
image:
repository: netdata/agent-sd
tag: v0.2.9
pullPolicy: Always
child:
enabled: true
configmap:
name: netdata-child-sd-config-map
key: config.yml
# if 'from' is {} the ConfigMap is not generated
from:
file: sdconfig/child.yml
value: {}
resources:
limits:
cpu: 50m
memory: 150Mi
requests:
cpu: 50m
memory: 100Mi
initContainersImage:
repository: alpine
tag: latest
pullPolicy: Always
sysctlInitContainer:
enabled: false
command: []
resources: {}
service:
type: ClusterIP
port: 19999
annotations: {}
## Only to be used with type LoadBalancer
# loadBalancerIP: 10.0.1.69
# loadBalancerSourceRanges: []
# externalTrafficPolicy: Local
## Only to be used with type LoadBalancer and external traffic policy Local
# healthCheckNodePort:
## Only to be used with type ClusterIP
# clusterIP: 10.1.2.3
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
path: /
pathType: Prefix
hosts:
- netdata.k8s.local
## whole spec is going to be included into ingress spec.
## if you intend to use ingressClassName declaration, remove ingress.class from annotations
# spec:
# ingressClassName: nginx
# tls:
# - secretName: netdata-tls
# hosts:
# - netdata.k8s.local
rbac:
create: true
pspEnabled: true
serviceAccount:
create: true
name: netdata
restarter:
enabled: false
schedule: "00 06 * * *"
image:
repository: bitnami/kubectl
tag: 1.25
pullPolicy: Always
restartPolicy: Never
resources: {}
# limits:
# cpu: 500m
# memory: 64Mi
# requests:
# cpu: 250m
# memory: 32Mi
concurrencyPolicy: Forbid
startingDeadlineSeconds: 60
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 3
notifications:
slack:
webhook_url: ""
recipient: ""
parent:
enabled: true
port: 19999
resources: {}
# limits:
# cpu: 4
# memory: 4096Mi
# requests:
# cpu: 4
# memory: 4096Mi
livenessProbe:
initialDelaySeconds: 0
failureThreshold: 3
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
initialDelaySeconds: 0
failureThreshold: 3
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
terminationGracePeriodSeconds: 300
nodeSelector: {}
tolerations: []
affinity: {}
priorityClassName: ""
env: {}
## To disable anonymous statistics:
# DO_NOT_TRACK: 1
envFrom: []
## E.g. to read Netdata Cloud claim token from an existing secret "netdata" set this to:
# - secretRef:
# name: netdata
## And create it with: kubectl create secret generic netdata --from-literal="NETDATA_CLAIM_TOKEN=<token>"
## Also ensure that claim.token is empty
podLabels: {}
podAnnotations: {}
dnsPolicy: Default
database:
persistence: true
## Set '-' as the storageclass to get a volume from the default storage class.
storageclass: "-"
volumesize: 2Gi
alarms:
persistence: true
## Set '-' as the storageclass to get a volume from the default storage class.
storageclass: "-"
volumesize: 1Gi
configs:
netdata:
enabled: true
path: /etc/netdata/netdata.conf
data: |
[global]
hostname = netdata-parent
[db]
mode = dbengine
[plugins]
cgroups = no
tc = no
enable running new plugins = no
check for new plugins every = 72000
python.d = no
charts.d = no
go.d = no
node.d = no
apps = no
proc = no
idlejitter = no
diskspace = no
stream:
enabled: true
path: /etc/netdata/stream.conf
data: |
[11111111-2222-3333-4444-555555555555]
enabled = yes
history = 3600
default memory mode = dbengine
health enabled by default = auto
allow from = *
health:
enabled: true
path: /etc/netdata/health_alarm_notify.conf
data: |
SEND_EMAIL="NO"
SEND_SLACK="YES"
SLACK_WEBHOOK_URL="{{ .Values.notifications.slack.webhook_url }}"
DEFAULT_RECIPIENT_SLACK="{{ .Values.notifications.slack.recipient }}"
exporting:
enabled: false
path: /etc/netdata/exporting.conf
data: ""
example:
enabled: false
path: /etc/netdata/health.d/example.conf
data: |
alarm: example_alarm1
on: example.random
every: 2s
warn: $random1 > (($status >= $WARNING) ? (70) : (80))
crit: $random1 > (($status == $CRITICAL) ? (80) : (90))
info: random
to: sysadmin
claiming:
enabled: false
token: ""
rooms: ""
url: "https://api.netdata.cloud"
extraVolumeMounts: []
extraVolumes: []
child:
enabled: true
port: "{{ .Values.parent.port }}"
updateStrategy: {}
# type: RollingUpdate
# rollingUpdate:
# maxUnavailable: 1
resources: {}
# limits:
# cpu: 4
# memory: 4096Mi
# requests:
# cpu: 4
# memory: 4096Mi
livenessProbe:
initialDelaySeconds: 0
failureThreshold: 3
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
initialDelaySeconds: 0
failureThreshold: 3
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
terminationGracePeriodSeconds: 30
nodeSelector: {}
tolerations:
- operator: Exists
effect: NoSchedule
affinity: {}
priorityClassName: ""
podLabels: {}
podAnnotationAppArmor:
enabled: true
podAnnotations: {}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
persistence:
enabled: true
hostPath: /var/lib/netdata-k8s-child
podsMetadata:
useKubelet: false
kubeletUrl: "https://localhost:10250"
configs:
netdata:
enabled: true
path: /etc/netdata/netdata.conf
data: |
[db]
mode = ram
[health]
enabled = no
[ml]
enabled = no
stream:
enabled: true
path: /etc/netdata/stream.conf
data: |
[stream]
enabled = {{ ternary "yes" "no" .Values.parent.enabled }}
destination = netdata:{{ .Values.service.port }}
api key = 11111111-2222-3333-4444-555555555555
timeout seconds = 60
buffer size bytes = 1048576
reconnect delay seconds = 5
initial clock resync iterations = 60
exporting:
enabled: false
path: /etc/netdata/exporting.conf
data: ""
go.d:
enabled: true
path: /etc/netdata/go.d.conf
data: |
modules:
pulsar: no
prometheus: yes
kubelet:
enabled: true
path: /etc/netdata/go.d/k8s_kubelet.conf
data: |
update_every: 1
autodetection_retry: 0
jobs:
- url: http://127.0.0.1:10255/metrics
- url: https://localhost:10250/metrics
tls_skip_verify: yes
kubeproxy:
enabled: true
path: /etc/netdata/go.d/k8s_kubeproxy.conf
data: |
update_every: 1
autodetection_retry: 0
jobs:
- url: http://127.0.0.1:10249/metrics
env: {}
## To disable anonymous statistics:
# DO_NOT_TRACK: 1
envFrom: []
## E.g. to read Netdata Cloud claim token from an existing secret "netdata" set this to:
# - secretRef:
# name: netdata
## And create it with: kubectl create secret generic netdata --from-literal="NETDATA_CLAIM_TOKEN=<token>"
## Also ensure that claim.token is empty
claiming:
enabled: false
token: ""
rooms: ""
url: "https://api.netdata.cloud"
extraVolumeMounts: []
## Additional volume mounts for netdata child
## E.g to mount all disks under / to be monitored via the diskspace plugin
# - name: root
# mountPath: /host
# readOnly: true
# mountPropagation: HostToContainer
extraVolumes: []
## Additional volumes for netdata child
## E.g to mount all disks under / to be monitored via the diskspace plugin
# - name: root
# hostPath:
# path: /
k8sState:
enabled: true
port: "{{ .Values.parent.port }}"
resources: {}
# limits:
# cpu: 4
# memory: 4096Mi
# requests:
# cpu: 4
# memory: 4096Mi
livenessProbe:
initialDelaySeconds: 0
failureThreshold: 3
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
initialDelaySeconds: 0
failureThreshold: 3
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
terminationGracePeriodSeconds: 30
nodeSelector: {}
tolerations: []
affinity: {}
priorityClassName: ""
podLabels: {}
podAnnotationAppArmor:
enabled: true
podAnnotations: {}
dnsPolicy: ClusterFirstWithHostNet
persistence:
enabled: true
## Set '-' as the storageclass to get a volume from the default storage class.
storageclass: "-"
volumesize: 1Gi
configs:
netdata:
enabled: true
path: /etc/netdata/netdata.conf
data: |
[global]
hostname = netdata-k8s-state
[db]
mode = ram
[health]
enabled = no
[ml]
enabled = no
[plugins]
timex = no
checks = no
idlejitter = no
tc = no
diskspace = no
proc = no
cgroups = no
enable running new plugins = no
slabinfo = no
perf = no
go.d = yes
ioping = no
ebpf = no
charts.d = no
apps = no
python.d = no
fping = no
stream:
enabled: true
path: /etc/netdata/stream.conf
data: |
[stream]
enabled = {{ ternary "yes" "no" .Values.parent.enabled }}
destination = netdata:{{ .Values.service.port }}
api key = 11111111-2222-3333-4444-555555555555
timeout seconds = 60
buffer size bytes = 1048576
reconnect delay seconds = 5
initial clock resync iterations = 60
exporting:
enabled: false
path: /etc/netdata/exporting.conf
data: ""
go.d:
enabled: true
path: /etc/netdata/go.d.conf
data: |
default_run: no
modules:
k8s_state: yes
go.d-k8s_state:
enabled: true
path: /etc/netdata/go.d/k8s_state.conf
data: |
jobs:
- name: k8s_state
update_every: 1
env: {}
## To disable anonymous statistics:
# DO_NOT_TRACK: 1
envFrom: []
## E.g. to read Netdata Cloud claim token from an existing secret "netdata" set this to:
# - secretRef:
# name: netdata
## And create it with: kubectl create secret generic netdata --from-literal="NETDATA_CLAIM_TOKEN=<token>"
## Also ensure that claim.token is empty
claiming:
enabled: false
token: ""
rooms: ""
url: "https://api.netdata.cloud"
extraVolumeMounts: []
extraVolumes: []