File tree Expand file tree Collapse file tree 5 files changed +29
-22
lines changed Expand file tree Collapse file tree 5 files changed +29
-22
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,11 @@ sudo sysctl -w vm.max_map_count=262144
7
7
# edit /etc/sysctl.conf to make it permanent
8
8
```
9
9
10
+ ## New requirments?
11
+
12
+ > https://kaapana.readthedocs.io/en/latest/faq/too_many_files_open.html
13
+
14
+ ``` bash
15
+ sudo sysctl -w fs.inotify.max_user_watches=10000
16
+ sudo sysctl -w fs.inotify.max_user_instances=10000
17
+ ```
Original file line number Diff line number Diff line change @@ -39,5 +39,6 @@ bash k8s-install.sh
39
39
40
40
## Ressources
41
41
42
+ * [ github.com - fluent/helm-charts - Fluent Helm Charts] ( https://github.com/fluent/helm-charts#readme )
42
43
* [ logz.io - Fluentd vs. Fluent Bit: Side by Side Comparison] ( https://logz.io/blog/fluentd-vs-fluent-bit/ )
43
44
* See also [ Loki] ( ../loki/README.md )
Original file line number Diff line number Diff line change 1
1
# https://github.com/fluent/helm-charts/blob/main/charts/fluent-bit/values.yaml
2
2
3
+ image :
4
+ tag : 4.0.8-debug
5
+
3
6
daemonset :
4
7
enabled : true
5
8
@@ -17,6 +20,7 @@ extraVolumeMounts:
17
20
readOnly : true
18
21
19
22
config :
23
+
20
24
# # https://docs.fluentbit.io/manual/pipeline/inputs
21
25
inputs : |
22
26
[INPUT]
@@ -32,9 +36,13 @@ config:
32
36
Systemd_Filter _SYSTEMD_UNIT=kubelet.service
33
37
Systemd_Filter _SYSTEMD_UNIT=containerd.service
34
38
35
-
36
39
# # https://docs.fluentbit.io/manual/pipeline/filters
37
40
filters : |
41
+ [FILTER]
42
+ Name grep
43
+ Match systemd.*
44
+ Exclude MESSAGE /.*TaskExit event in podsandbox handler container_id.*/
45
+ Exclude MESSAGE /.*container event discarded.*/
38
46
[FILTER]
39
47
Name kubernetes
40
48
Match kube.*
@@ -43,6 +51,10 @@ config:
43
51
Kube_Tag_Prefix kube.var.log.containers.
44
52
K8S-Logging.Parser On
45
53
K8S-Logging.Exclude On
54
+ [FILTER]
55
+ Name grep
56
+ Match kube.*
57
+ Exclude $kubernetes['namespace_name'] kubernetes-dashboard
46
58
[FILTER]
47
59
Name nest
48
60
Match kube.*
Original file line number Diff line number Diff line change 19
19
# Create namespace fluent if not exists
20
20
kubectl create namespace fluent --dry-run=client -o yaml | kubectl apply -f -
21
21
22
- # Deploy fluent-bit with helm
23
- helm -n fluent upgrade --install fluent-bit oci://registry-1.docker.io/bitnamicharts/fluent-bit \
24
- -f ${SCRIPT_DIR} /helm/fluent-bit/values.yaml
22
+ # Add fluent repo
23
+ helm repo add fluent https://fluent.github.io/helm-charts
25
24
26
- # Allow fluent-bit sa to retreive infos about containers
27
- cat << EOF | kubectl apply -f -
28
- apiVersion: rbac.authorization.k8s.io/v1
29
- kind: ClusterRoleBinding
30
- metadata:
31
- name: fluent-bit-read
32
- subjects:
33
- - kind: ServiceAccount
34
- name: fluent-bit
35
- namespace: fluent
36
- roleRef:
37
- kind: ClusterRole
38
- name: view
39
- apiGroup: rbac.authorization.k8s.io
40
- EOF
25
+ # Update repos
26
+ helm repo update
41
27
28
+ # Deploy fluent-bit with helm
29
+ helm -n fluent upgrade --install fluent-bit fluent/fluent-bit \
30
+ -f ${SCRIPT_DIR} /helm/fluent-bit/values.yaml
42
31
43
32
44
33
Original file line number Diff line number Diff line change 2
2
3
3
# Uninstall fluent-bit with helm
4
4
helm -n fluent uninstall fluent-bit
5
-
6
- # Remove clusterrolebinding
7
- kubectl delete clusterrolebinding fluent-bit-read
You can’t perform that action at this time.
0 commit comments