-
Notifications
You must be signed in to change notification settings - Fork 183
/
values.yaml
5358 lines (5091 loc) · 229 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
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
## Sumo Logic Kubernetes Collection configuration file
## All the comments start with two or more # characters
nameOverride: ""
fullnameOverride: ""
sumologic:
### Setup
## If enabled, a pre-install hook will create Collector and Sources in Sumo Logic
setupEnabled: true
## If enabled, a pre-delete hook will destroy Collector in Sumo Logic
cleanupEnabled: false
## If enabled, accessId and accessKey will be sourced from Secret Name given
## Be sure to include at least the following env variables in your secret
## (1) SUMOLOGIC_ACCESSID, (2) SUMOLOGIC_ACCESSKEY
# envFromSecret: sumo-api-secret
## Sumo access ID
# accessId: ""
## Sumo access key
# accessKey: ""
## Sumo API endpoint; Leave blank for automatic endpoint discovery and redirection
## ref: https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security
endpoint: ""
## proxy urls
httpProxy: ""
httpsProxy: ""
## Exclude Kubernetes internal traffic from proxy
noProxy: kubernetes.default.svc
## Collector name
# collectorName: ""
## Cluster name: Note spaces are not allowed and will be replaced with dashes.
clusterName: "kubernetes"
## Configuration of Kubernetes for Terraform client
## https://www.terraform.io/docs/providers/kubernetes/index.html#argument-reference
## All double quotes should be escaped here regarding Terraform syntax
cluster:
host: "https://kubernetes.default.svc"
# username:
# password:
# insecure:
# client_certificate:
# client_key:
cluster_ca_certificate: "${file(\"/var/run/secrets/kubernetes.io/serviceaccount/ca.crt\")}"
# config_path:
# config_context:
# config_context_auth_info:
# config_context_cluster:
token: "${file(\"/var/run/secrets/kubernetes.io/serviceaccount/token\")}"
# exec:
# api_version:
# command:
# args: []
# env: {}
## If you set it to false, it would set EXCLUDE_NAMESPACE=<release-namespace>
## and not add the fluentD/fluent-bit logs and Prometheus remotestorage metrics.
collectionMonitoring: true
## Optionally specify an array of pullSecrets.
## They will be added to serviceaccount that is used for Sumo Logic's
## deployments and statefulsets.
## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets:
# - name: myRegistryKeySecretName
## Add custom labels to the following sumologic resources(fluentd sts, setup job, otelcol deployment)
podLabels: {}
## Add custom annotations to the following sumologic resources(fluentd sts, setup job, otelcol deployment)
podAnnotations: {}
## Add custom annotations to sumologic serviceAccounts
serviceAccount:
annotations: {}
## creation of Security Context Constraints in Openshift
scc:
create: false
setup:
## uncomment to force collection installation (disables k8s version verification)
# force: true
job:
image:
repository: public.ecr.aws/sumologic/kubernetes-setup
tag: 3.3.0
pullPolicy: IfNotPresent
## Optionally specify an array of pullSecrets.
## They will be added to serviceaccount that is used for Sumo Logic's
## setup job.
## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets:
# - name: myRegistryKeySecretName
resources:
limits:
memory: 256Mi
cpu: 2000m
requests:
memory: 64Mi
cpu: 200m
nodeSelector: {}
## Add custom labels only to setup job pod
## Node tolerations for server scheduling to nodes with taints
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
##
tolerations: []
# - key: null
# operator: Exists
# effect: "NoSchedule"
## Affinity and anti-affinity
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}
podLabels: {}
## Add custom annotations only to setup job pod
podAnnotations: {}
## uncomment for the debug mode (disables the automatic run of the setup.sh script)
# debug: true
monitors:
## If enabled, a pre-install hook will create k8s monitors in Sumo Logic
enabled: true
## The installed monitors default status: enabled/disabled
monitorStatus: enabled
## A list of emails to send notifications from monitors
notificationEmails: []
dashboards:
## If enabled, a pre-install hook will install k8s dashboards in Sumo Logic
enabled: true
collector:
## Configuration of additional collector fields
## https://help.sumologic.com/Manage/Fields#http-source-fields
fields: {}
## Configuration of http sources
## See docs/Terraform.md for more information
## name: source name visible in sumologic platform
## config-name: This is mostly for backward compatibility
sources:
metrics:
default:
name: (default-metrics)
config-name: endpoint-metrics
apiserver:
name: apiserver-metrics
config-name: endpoint-metrics-apiserver
controller:
name: kube-controller-manager-metrics
config-name: endpoint-metrics-kube-controller-manager
scheduler:
name: kube-scheduler-metrics
config-name: endpoint-metrics-kube-scheduler
state:
name: kube-state-metrics
config-name: endpoint-metrics-kube-state
kubelet:
name: kubelet-metrics
config-name: endpoint-metrics-kubelet
node:
name: node-exporter-metrics
config-name: endpoint-metrics-node-exporter
control-plane:
name: control-plane-metrics
logs:
default:
name: logs
config-name: endpoint-logs
## Properties can be used to extend default settings, such as processing rules, fields etc
# properties:
# filters:
# - name: "Test Exclude Debug"
# filter_type: "Exclude"
# regexp: ".*DEBUG.*"
events:
default:
name: events
config-name: endpoint-events
traces:
default:
name: traces
config-name: endpoint-traces
properties:
content_type: Zipkin
### Configuration for collection of Kubernetes events
events:
provider: fluentd
### Logs configuration
## Set the enabled flag to false for disabling logs ingestion altogether.
logs:
enabled: true
metadata:
## Set provider service (either fluentd or otelcol).
provider: fluentd
## Fields to be created at Sumo Logic to ensure logs are tagged with
## relevant metadata.
## https://help.sumologic.com/Manage/Fields#Manage_fields
fields:
- cluster
- container
- deployment
- host
- namespace
- node
- pod
- service
### Metrics configuration
## Set the enabled flag to false for disabling metrics ingestion altogether.
metrics:
enabled: true
metadata:
## Set metadata provider service (either fluentd or otelcol).
provider: fluentd
### Enable a load balancing proxy for Prometheus remote writes.
## Prometheus remote write uses a single persistent HTTP connection per target,
## which interacts poorly with TCP load balancing with iptables that K8s Services do.
## Use a real HTTP load balancer for this instead.
## This is an advanced feature, enable only if you're experiencing performance
## issues with metrics metadata enrichment.
remoteWriteProxy:
enabled: false
config:
## Increase this if you've increased samples_per_send in Prometheus to prevent nginx
## from spilling proxied request bodies to disk
clientBodyBufferSize: "64k"
## This feature autodetects how much CPU is assigned to the nginx instance and sets
## the right amount of workers based on that. Disable to use the default of 8 workers.
workerCountAutotune: true
replicaCount: 3
image:
## TODO: Serve this image from the sumologic public ECR
repository: public.ecr.aws/nginx/nginx
tag: 1.21-alpine
pullPolicy: IfNotPresent
resources:
limits:
cpu: 1000m
memory: 256Mi
requests:
cpu: 200m
memory: 128Mi
livenessProbe:
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
readinessProbe:
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 3
successThreshold: 1
failureThreshold: 3
securityContext: {}
nodeSelector: {}
tolerations: []
affinity: {}
## Option to define priorityClassName to assign a priority class to pods.
priorityClassName:
## Add custom labels only to metrics sts pods
podLabels: {}
## Add custom annotations only to metrics sts pods
podAnnotations: {}
### Traces configuration
## Set the enabled flag to true to enable traces ingestion.
traces:
enabled: false
## How many spans per request should be send to receiver
spans_per_request: 100
fluentd:
image:
repository: public.ecr.aws/sumologic/kubernetes-fluentd
tag: 1.14.6-sumo-5
pullPolicy: IfNotPresent
## Specifies whether a PodSecurityPolicy should be created
podSecurityPolicy:
create: false
additionalPlugins: []
## Sets the fluentd log level. The default log level, if not specified, is info.
## Sumo will only ingest the error log level and some specific warnings, the info logs can be seen in kubectl logs.
## ref: https://docs.fluentd.org/deployment/logging
logLevel: "info"
## to ingest all fluentd logs, turn the logLevelFilter to false
logLevelFilter: true
## Verify SumoLogic HTTPS certificates
verifySsl: true
## Proxy URI for sumologic output plugin
proxyUri: ""
## Enable and set compression encoding for fluentd output plugin
compression:
enabled: true
encoding: gzip
securityContext:
## The group ID of all processes in the statefulset containers. By default this needs to be fluent(999).
fsGroup: 999
## Add custom labels to all fluentd sts pods(logs, metrics, events)
podLabels: {}
## Add custom annotations to all fluentd sts pods(logs, metrics, events)
podAnnotations: {}
## Add custom labels to all fluentd svc (logs, metrics, events)
serviceLabels: {}
## Add custom labels to all fluentd statefulset PVC (logs, metrics, events)
pvcLabels: {}
## Persist data to a persistent volume; When enabled, fluentd uses the file buffer instead of memory buffer.
persistence:
## After changing this value please follow steps described in:
## https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/main/deploy/docs/FluentdPersistence.md
enabled: true
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, Azure & OpenStack)
##
# storageClass: "-"
# annotations: {}
accessMode: ReadWriteOnce
size: 10Gi
buffer:
## Option to specify the Fluentd buffer as file/memory.
## If fluentd.persistence.enabled is true, this will be ignored.
type: "memory"
## How frequently to push logs to SumoLogic
## ref: https://github.com/SumoLogic/fluentd-kubernetes-sumologic#options
flushInterval: "5s"
## Increase number of http threads to Sumo. May be required in heavy logging/high DPM clusters
numThreads: 8
chunkLimitSize: "1m"
queueChunkLimitSize: 128
totalLimitSize: "128m"
retryMaxInterval: "10m"
retryForever: true
compress: gzip
## File paths to buffer to, if Fluentd buffer type is specified as file above.
## Each sumologic output plugin buffers to its own unique file.
filePaths:
logs:
containers: /fluentd/buffer/logs.containers
kubelet: /fluentd/buffer/logs.kubelet
systemd: /fluentd/buffer/logs.systemd
default: /fluentd/buffer/logs.default
metrics:
apiserver: /fluentd/buffer/metrics.apiserver
kubelet: /fluentd/buffer/metrics.kubelet
container: /fluentd/buffer/metrics.container
controller: /fluentd/buffer/metrics.controller
scheduler: /fluentd/buffer/metrics.scheduler
state: /fluentd/buffer/metrics.state
node: /fluentd/buffer/metrics.node
control-plane: /fluentd/buffer/metrics.control_plane
default: /fluentd/buffer/metrics.default
events: /fluentd/buffer/events
traces: /fluentd/buffer/traces
## Additional config for buffer settings
extraConf: |-
## configuration of fluentd monitoring metrics
## input -> fluentd_input_status_num_records_total (~5% DPM increase for empty cluster)
## output -> fluentd_output_status_num_records_total (~25% DPM increase for empty cluster)
monitoring:
input: false
output: false
metadata:
## Option to control capturing of annotations by metadata filter plugin.
annotation_match:
- 'sumologic\.com.*'
## Option to control the enabling of metadata filter plugin cache_size.
## ref: https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter#configuration
cacheSize: "10000"
## Option to control the enabling of metadata filter plugin cache_ttl (in seconds).
## ref: https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter#configuration
cacheTtl: "7200"
## Option to control the interval at which metadata cache is asynchronously refreshed (in seconds).
cacheRefresh: "3600"
## Option to control the variation in seconds by which the cacheRefresh option is changed for each pod separately.
## For example, if cache refresh is 1 hour and variation is 15 minutes, then actual cache refresh interval
## will be a random value between 45 minutes and 1 hour 15 minutes, different for each pod. This helps spread
## the load on API server that the cache refresh induces. Setting this to 0 disables cache refresh variation.
cacheRefreshVariation: "900"
## Option to control the delay with which cache refresh calls hit the api server.
## For example, if 0 then all metadata enrichment happen immediately. Setting this to a non-zero values ensures the
## traffic to api server is much distributed.
## Disclaimer: Not recommended for use, if your api server read latency is > 1s
cacheRefreshApiserverRequestDelay: "0"
## Option to disable metadata cache refresh
cacheRefreshExcludePodRegex: ""
## Option to give plugin specific log level
pluginLogLevel: "error"
## Option to specify K8s API versions
coreApiVersions:
- v1
## Option to specify K8s API groups
apiGroups:
- apps/v1
## Option to control the enrichment of logs and metrics with pod owner metadata like `daemonset`, `deployment`,
## `replicaset`, `statefulset`.
addOwners: true
## Option to control the enrichment of logs and metrics with `service` metadata.
addService: true
## Option to specify custom API server URL instead of the default,
## that is taken from KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT environment variables.
## Example: "https://kubernetes.default.svc:443".
apiServerUrl: ""
logs:
enabled: true
statefulset:
nodeSelector: {}
tolerations: []
topologySpreadConstraints: []
affinity: {}
## Acceptable values for podAntiAffinity:
## soft: specifies preferences that the scheduler will try to enforce but will not guarantee (Default)
## hard: specifies rules that must be met for a pod to be scheduled onto a node
podAntiAffinity: "soft"
replicaCount: 3
resources:
limits:
memory: 1Gi
cpu: 1000m
requests:
memory: 768Mi
## Warning! Increasing the CPU requests for Fluentd above 1000m might result in broken autoscaling
## ref: https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/main/deploy/docs/Best_Practices.md#cpu-resources-warning
cpu: 500m
## Option to define priorityClassName to assign a priority class to pods.
priorityClassName:
## Add custom labels only to logs fluentd sts pods
podLabels: {}
## Add custom annotations only to logs fluentd sts pods
podAnnotations: {}
## Set securityContext for containers running in pods in logs statefulset.
containers:
fluentd:
securityContext: {}
## This supports either a structured array or a templatable string
initContainers: []
## Array mode
# initContainers:
# - name: do-something
# image: bitnami/kubectl:1.22
# command: ['kubectl', 'version']
## String mode
# initContainers: |-
# - name: do-something
# image: bitnami/kubectl:{{ .Capabilities.KubeVersion.Major }}.{{ trimSuffix "+" .Capabilities.KubeVersion.Minor }}
# command: ['kubectl', 'version']
## Option to turn autoscaling on for fluentd and specify params for HPA.
## Autoscaling needs metrics-server to access cpu metrics.
autoscaling:
enabled: false
minReplicas: 3
maxReplicas: 10
targetCPUUtilizationPercentage: 100
# targetMemoryUtilizationPercentage: 50
## Option to specify PodDisrutionBudgets
## You can specify only one of maxUnavailable and minAvailable in a single PodDisruptionBudget
podDisruptionBudget:
minAvailable: 2
## To use maxUnavailable, set minAvailable to null and uncomment the below:
# maxUnavailable: 1
rawConfig: |-
@include common.conf
@include logs.conf
## Configuration for the forward input plugin that receives logs from FluentBit
## ref: https://docs.fluentd.org/input/forward
input:
## Use to specify additional config, including transport or security options.
forwardExtraConf: |-
## Configuration for sumologic output plugin
## See below links for full reference:
## https://github.com/SumoLogic/fluentd-output-sumologic
## https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/main/deploy/helm/sumologic/conf/logs/fluentd/logs.output.conf
output:
## Format to post logs into Sumo: fields, json, json_merge, or text.
## NOTE: for logs metadata, fields is required.
## NOTE: Multiline log detection works differently for `text` format. See below link for full reference:
## https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/main/deploy/docs/Troubleshoot_Collection.md#using-text-format
logFormat: fields
## Option to control adding timestamp to logs.
addTimestamp: true
## Field name when add_timestamp is on.
timestampKey: "timestamp"
## Option to give plugin specific log level
pluginLogLevel: "error"
## Additional config parameters for sumologic output plugin
extraConf: |-
## Additional config for custom log pipelines
## ref: TODO: documentation for custom logs pipelines
extraLogs: |-
## Container log configuration
containers:
## To override the entire contents of logs.source.containers.conf file. Leave empty for the default pipeline
overrideRawConfig: |-
outputConf: |-
@include logs.output.conf
## Override output section for container logs. Leave empty for the default output section
overrideOutputConf: |-
## Set the _sourceName metadata field in Sumo Logic.
sourceName: "%{namespace}.%{pod}.%{container}"
## Set the _sourceCategory metadata field in Sumo Logic.
sourceCategory: "%{namespace}/%{pod_name}"
## Set the prefix, for _sourceCategory metadata.
sourceCategoryPrefix: "kubernetes/"
## Used to replace - with another character.
sourceCategoryReplaceDash: "/"
## A regular expression for containers.
## Matching containers will be excluded from Sumo. The logs will still be sent to FluentD.
excludeContainerRegex: ""
## A regular expression for hosts.
## Matching hosts will be excluded from Sumo. The logs will still be sent to FluentD.
excludeHostRegex: ""
## A regular expression for namespaces.
## Matching namespaces will be excluded from Sumo. The logs will still be sent to FluentD.
excludeNamespaceRegex: ""
## A regular expression for pods.
## Matching pods will be excluded from Sumo. The logs will still be sent to FluentD.
excludePodRegex: ""
## Defines whether container-level pod annotations are enabled.
## Setting this to `true` might slightly affect Fluentd performance.
## See below link for full reference:
## https://github.com/SumoLogic/sumologic-kubernetes-fluentd/tree/v1.14.6-sumo-5/fluent-plugin-kubernetes-sumologic#container-level-pod-annotations
perContainerAnnotationsEnabled: false
## Defines the list of prefixes of container-level pod annotations.
## See below link for full reference:
## https://github.com/SumoLogic/sumologic-kubernetes-fluentd/tree/v1.14.6-sumo-5/fluent-plugin-kubernetes-sumologic#container-level-pod-annotations
perContainerAnnotationPrefixes: []
## ref: https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter#configuration
k8sMetadataFilter:
## Option to control the enabling of metadata filter plugin watch.
watch: "true"
## path to CA file for Kubernetes server certificate validation
caFile: ""
## Validate SSL certificates
verifySsl: true
## Path to a client cert file to authenticate to the API server
clientCert: ""
## Path to a client key file to authenticate to the API server
clientKey: ""
## Path to a file containing the bearer token to use for authentication
bearerTokenFile: ""
## Regex to match containers tag to `pod_name`, `namespace`, `container_name` and `docker_id`. All of them are obligatory
## See below links for reference:
## https://github.com/SumoLogic/sumologic-kubernetes-fluentd/blob/v1.14.6-sumo-5/fluent-plugin-kubernetes-metadata-filter/lib/fluent/plugin/filter_kubernetes_metadata.rb#L322-L325
## https://github.com/SumoLogic/sumologic-kubernetes-fluentd/tree/v1.14.6-sumo-5/fluent-plugin-kubernetes-metadata-filter#configuration
tagToMetadataRegexp: '.+?\.containers\.(?<pod_name>[^_]+)_(?<namespace>[^_]+)_(?<container_name>.+)-(?<docker_id>[a-z0-9]{64})\.log$'
## To use additional filter plugins
extraFilterPluginConf: |-
## To use additional output plugins
extraOutputPluginConf: |-
## To enable stiching multiline logs in fluentd when fluent-bit Multiline feature is On
multiline:
enabled: true
## Kubelet log configuration
kubelet:
enabled: true
## To use additional filter plugins
extraFilterPluginConf: |-
## To use additional output plugins
extraOutputPluginConf: |-
outputConf: |-
@include logs.output.conf
## Override output section for kubelet logs. Leave empty for the default output section.
overrideOutputConf: |-
## Set the _sourceName metadata field in Sumo Logic.
sourceName: "k8s_kubelet"
## Set the _sourceCategory metadata field in Sumo Logic.
sourceCategory: "kubelet"
## Set the prefix, for _sourceCategory metadata.
sourceCategoryPrefix: "kubernetes/"
## Used to replace - with another character.
sourceCategoryReplaceDash: "/"
## A regular expression for facility.
## Matching facility will be excluded from Sumo. The logs will still be sent to FluentD.
excludeFacilityRegex: ""
## A regular expression for hosts.
## Matching hosts will be excluded from Sumo. The logs will still be sent to FluentD.
excludeHostRegex: ""
## A regular expression for priority.
## Matching priority will be excluded from Sumo. The logs will still be sent to FluentD.
excludePriorityRegex: ""
## A regular expression for unit.
## Matching unit will be excluded from Sumo. The logs will still be sent to FluentD.
excludeUnitRegex: ""
## Systemd log configuration
systemd:
enabled: true
## To use additional filter plugins
extraFilterPluginConf: |-
## To use additional output plugins
extraOutputPluginConf: |-
outputConf: |-
@include logs.output.conf
## Override output section for systemd logs. Leave empty for the default output section.
overrideOutputConf: |-
## Set the _sourceName metadata field in Sumo Logic.
sourceName: "k8s_systemd"
## Set the _sourceCategory metadata field in Sumo Logic.
sourceCategory: "system"
## Set the prefix, for _sourceCategory metadata.
sourceCategoryPrefix: "kubernetes/"
## Used to replace - with another character.
sourceCategoryReplaceDash: "/"
## A regular expression for facility.
## Matching facility will be excluded from Sumo. The logs will still be sent to FluentD.
excludeFacilityRegex: ""
## A regular expression for hosts.
## Matching hosts will be excluded from Sumo. The logs will still be sent to FluentD.
excludeHostRegex: ""
## A regular expression for priority.
## Matching priority will be excluded from Sumo. The logs will still be sent to FluentD.
excludePriorityRegex: ""
## A regular expression for unit.
## Matching unit will be excluded from Sumo. The logs will still be sent to FluentD.
excludeUnitRegex: ""
## Default log configuration (catch-all)
default:
## To use additional filter plugins
extraFilterPluginConf: |-
## To use additional output plugins
extraOutputPluginConf: |-
outputConf: |-
@include logs.output.conf
## Override output section for untagged logs. Leave empty for the default output section.
overrideOutputConf: |-
## Set the _sourceName metadata field in Sumo Logic.
sourceName: "k8s_default"
## Set the _sourceCategory metadata field in Sumo Logic.
sourceCategory: "default"
## Set the prefix, for _sourceCategory metadata.
sourceCategoryPrefix: "kubernetes/"
## Used to replace - with another character.
sourceCategoryReplaceDash: "/"
## A regular expression for facility.
## Matching facility will be excluded from Sumo. The logs will still be sent to FluentD.
excludeFacilityRegex: ""
## A regular expression for hosts.
## Matching hosts will be excluded from Sumo. The logs will still be sent to FluentD.
excludeHostRegex: ""
## A regular expression for priority.
## Matching priority will be excluded from Sumo. The logs will still be sent to FluentD.
excludePriorityRegex: ""
## A regular expression for unit.
## Matching unit will be excluded from Sumo. The logs will still be sent to FluentD.
excludeUnitRegex: ""
## Extra Environment Values - allows yaml definitions
# extraEnvVars:
# - name: VALUE_FROM_SECRET
# valueFrom:
# secretKeyRef:
# name: secret_name
# key: secret_key
# extraVolumes:
# - name: es-certs
# secret:
# defaultMode: 420
# secretName: es-certs
# extraVolumeMounts:
# - name: es-certs
# mountPath: /certs
# readOnly: true
metrics:
enabled: true
statefulset:
nodeSelector: {}
tolerations: []
topologySpreadConstraints: []
affinity: {}
## Acceptable values for podAntiAffinity:
## soft: specifies preferences that the scheduler will try to enforce but will not guarantee (Default)
## hard: specifies rules that must be met for a pod to be scheduled onto a node
podAntiAffinity: "soft"
replicaCount: 3
resources:
limits:
memory: 1Gi
cpu: 1000m
requests:
memory: 768Mi
## Warning! Increasing the CPU requests for Fluentd above 1000m might result in broken autoscaling
## ref: https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/main/deploy/docs/Best_Practices.md#cpu-resources-warning
cpu: 500m
## Option to define priorityClassName to assign a priority class to pods.
priorityClassName:
## Add custom labels only to metrics fluentd sts pods
podLabels: {}
## Add custom annotations only to metrics fluentd sts pods
podAnnotations: {}
## Set securityContext for containers running in pods in metrics statefulset.
containers:
fluentd:
securityContext: {}
## This supports either a structured array or a templatable string
initContainers: []
## Array mode
# initContainers:
# - name: do-something
# image: bitnami/kubectl:1.22
# command: ['kubectl', 'version']
## String mode
# initContainers: |-
# - name: do-something
# image: bitnami/kubectl:{{ .Capabilities.KubeVersion.Major }}.{{ trimSuffix "+" .Capabilities.KubeVersion.Minor }}
# command: ['kubectl', 'version']
## Option to turn autoscaling on for fluentd and specify params for HPA.
## Autoscaling needs metrics-server to access cpu metrics.
autoscaling:
enabled: false
minReplicas: 3
maxReplicas: 10
targetCPUUtilizationPercentage: 100
# targetMemoryUtilizationPercentage: 50
## Option to specify PodDisrutionBudgets
## You can specify only one of maxUnavailable and minAvailable in a single PodDisruptionBudget
podDisruptionBudget:
minAvailable: 2
rawConfig: |-
@include common.conf
@include metrics.conf
## Configuration for sumologic output plugin
## See below links for full reference:
## https://github.com/SumoLogic/fluentd-output-sumologic
## https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/main/deploy/helm/sumologic/conf/metrics/fluentd/metrics.output.conf
outputConf: |-
@include metrics.output.conf
## Additional config parameters for sumologic output plugin
extraOutputConf: |-
## Override output section for metrics. Leave empty for the default output section
overrideOutputConf: |-
## To use additional filter plugins
extraFilterPluginConf: |-
## To use additional output plugins
extraOutputPluginConf: |-
## Extra Environment Values - allows yaml definitions
# extraEnvVars:
# - name: VALUE_FROM_SECRET
# valueFrom:
# secretKeyRef:
# name: secret_name
# key: secret_key
# extraVolumes:
# - name: es-certs
# secret:
# defaultMode: 420
# secretName: es-certs
# extraVolumeMounts:
# - name: es-certs
# mountPath: /certs
# readOnly: true
## Output configuration
## tag: tag for fluentd match
## id: sumologic output @id
## endpoint: [optional] [output key by default] It should match the sumologic.collector.sources.metrics[].endpoint
## drop: [optional] [false by default] Change it to true to drop traffic for specific output
## weight: [optional [0 by default] Order of fluentd output (lower means higher priority)
## The weight has meaning in case of fluentd matches
output:
apiserver:
tag: prometheus.metrics.apiserver**
id: sumologic.endpoint.metrics.apiserver
weight: 90
kubelet:
tag: prometheus.metrics.kubelet**
id: sumologic.endpoint.metrics.kubelet
weight: 90
container:
tag: prometheus.metrics.container**
id: sumologic.endpoint.metrics.container
source: kubelet
weight: 90
controller:
tag: prometheus.metrics.controller-manager**
id: sumologic.endpoint.metrics.kube.controller.manager
weight: 90
scheduler:
tag: prometheus.metrics.scheduler**
id: sumologic.endpoint.metrics.kube.scheduler
weight: 90
state:
tag: prometheus.metrics.state**
id: sumologic.endpoint.metrics.kube.state
weight: 90
node:
tag: prometheus.metrics.node**
id: sumologic.endpoint.metrics.node.exporter
weight: 90
control-plane:
tag: prometheus.metrics.control-plane**
id: sumologic.endpoint.metrics.control.plane
weight: 90
default:
tag: prometheus.metrics**
id: sumologic.endpoint.metrics
weight: 100
events:
## If enabled, collect K8s events
## Deprecated, use `sumologic.events.enabled` instead
enabled: true
statefulset:
nodeSelector: {}
tolerations: []
affinity: {}
resources:
limits:
memory: 512Mi
cpu: 200m
requests:
memory: 256Mi
cpu: 100m
## Option to define priorityClassName to assign a priority class to pods.
priorityClassName:
## Add custom labels only to events fluentd sts pods
podLabels: {}
## Add custom annotations only to events fluentd sts pods
podAnnotations: {}
## Set securityContext for containers running in pods in events statefulset.
containers:
fluentd:
securityContext: {}
## This supports either a structured array or a templatable string
initContainers: []
## Array mode
# initContainers:
# - name: do-something
# image: bitnami/kubectl:1.22
# command: ['kubectl', 'version']
## String mode
# initContainers: |-
# - name: do-something
# image: bitnami/kubectl:{{ .Capabilities.KubeVersion.Major }}.{{ trimSuffix "+" .Capabilities.KubeVersion.Minor }}
# command: ['kubectl', 'version']
## Override output section for events. Leave empty for the default output section
overrideOutputConf: |-
## Source name for the Events source. Default: "events"
sourceName: "events"
## Source category for the Events source. Default: "{clusterName}/events"
# sourceCategory: "kubernetes/events"
## Override Kubernetes resource types you want to get events for from different Kubernetes
## API versions. The key represents the name of the resource type and the value represents
## the API version.
# watchResourceEventsOverrides:
# pods: "v1"
# events: "events.k8s.io/v1beta1"
## Extra Environment Values - allows yaml definitions
# extraEnvVars:
# - name: VALUE_FROM_SECRET
# valueFrom:
# secretKeyRef:
# name: secret_name
# key: secret_key
# extraVolumes:
# - name: es-certs
# secret:
# defaultMode: 420
# secretName: es-certs
# extraVolumeMounts:
# - name: es-certs
# mountPath: /certs
# readOnly: true
## Configure metrics-server
## ref: https://github.com/bitnami/charts/blob/master/bitnami/metrics-server/values.yaml
metrics-server:
## Set the enabled flag to true for enabling metrics-server.
## This is required before enabling fluentd autoscaling unless you have an existing metrics-server in the cluster.
enabled: false
apiService:
create: true
extraArgs:
kubelet-insecure-tls: true
kubelet-preferred-address-types: InternalIP,ExternalIP,Hostname
## Optionally specify image options for metrics-server
# image:
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets:
# - imagepullsecret
## Configure fluent-bit
## ref: https://github.com/fluent/helm-charts/blob/master/charts/fluent-bit/values.yaml
fluent-bit:
## If specified, use these secrets to access the image