Skip to content

Commit 714a581

Browse files
committed
Merge branch 'improvement/MK8S-188-make-fluent-bit-configurable' into q/133.0
2 parents a95125a + 5debca5 commit 714a581

File tree

15 files changed

+119
-30
lines changed

15 files changed

+119
-30
lines changed

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
- Support etcd distroless images for Kubernetes 1.33+. Above etcd 3.5.21, etcd images are now distroless and upstreamed to the etcd project.
2727
(PR[#4740](https://github.com/scality/metalk8s/pull/4740))
2828

29-
- Bump Fluent Bit image version to [4.2.2](https://github.com/fluent/fluent-bit/releases/tag/v4.2.2)
30-
and Fluent Bit Helm chart version to [0.55.0](https://github.com/fluent/helm-charts/releases/tag/fluent-bit-0.55.0)
31-
(PR[#4778](https://github.com/scality/metalk8s/pull/4778))
29+
- Bump Fluent Bit image version to [4.2.3](https://github.com/fluent/fluent-bit/releases/tag/v4.2.3)
30+
and Fluent Bit Helm chart version to [0.56.0](https://github.com/fluent/helm-charts/releases/tag/fluent-bit-0.56.0)
31+
(PR[#4812](https://github.com/scality/metalk8s/pull/4812))
3232

3333
- Bump dex chart version to
3434
[0.24.0](https://github.com/dexidp/helm-charts/releases/tag/dex-0.24.0)
@@ -57,6 +57,9 @@
5757
and ingress-nginx controller to [v1.15.0](https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.15.0)
5858
(PR[#4824](https://github.com/scality/metalk8s/pull/4824))
5959

60+
- Implement ability to add certificates to fluent-bit by mounting a fluent-bit-certs secret
61+
(PR[#4812](https://github.com/scality/metalk8s/pull/4812))
62+
6063
### Bug Fixes
6164

6265
- Fix a bug where part of the upgrade process would silently be skipped

buildchain/buildchain/salt_tree.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ def _download_ui_operator_crds() -> str:
350350
Path("salt/metalk8s/addons/logging/fluent-bit/deployed/configmap.sls"),
351351
Path("salt/metalk8s/addons/logging/fluent-bit/deployed/init.sls"),
352352
Path("salt/metalk8s/addons/logging/fluent-bit/deployed/service-configuration.sls"),
353+
Path("salt/metalk8s/addons/logging/fluent-bit/deployed/secret.sls"),
353354
Path("salt/metalk8s/addons/logging/loki/config/loki.yaml"),
354355
Path("salt/metalk8s/addons/logging/loki/deployed/files/logs.json"),
355356
Path("salt/metalk8s/addons/logging/loki/deployed/files/loki.json"),

buildchain/buildchain/versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ def _version_prefix(version: str, prefix: str = "v") -> str:
285285
),
286286
Image(
287287
name="fluent-bit",
288-
version="4.2.2",
289-
digest="sha256:7d727245767ae632eb296c2ff4d206bf2e205b5f244c1f37b8fdd61f9fb33985",
288+
version="4.2.3",
289+
digest="sha256:a5761fa961cb22dd0875883a4d446b1acd99d4935d77358aa9f50ee177e44fe2",
290290
),
291291
Image(
292292
name="cert-manager-controller",

charts/fluent-bit.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ daemonSetVolumes:
3838
- name: runlog
3939
hostPath:
4040
path: /run/log
41+
# stores all needed certificates for TLS outputs
42+
- name: certificates
43+
secret:
44+
secretName: fluent-bit-certs
4145

4246
daemonSetVolumeMounts:
4347
- name: run
@@ -48,6 +52,9 @@ daemonSetVolumeMounts:
4852
- name: runlog
4953
mountPath: /run/log
5054
readOnly: true
55+
- name: certificates
56+
mountPath: /fluent-bit/etc/tls
57+
readOnly: true
5158

5259
serviceMonitor:
5360
enabled: true
@@ -57,3 +64,9 @@ serviceMonitor:
5764
dashboards:
5865
enabled: true
5966
deterministicUid: true
67+
68+
env:
69+
- name: NODE_NAME
70+
valueFrom:
71+
fieldRef:
72+
fieldPath: spec.nodeName

charts/fluent-bit/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414

1515
## [UNRELEASED]
1616

17+
## [v0.56.0] - 2026-02-27
18+
19+
### Added
20+
21+
- VPA recommender may be specified with `.autoscaling.vpa.recommender`
22+
23+
## [v0.55.1] - 2026-02-27
24+
25+
### Changed
26+
27+
- Update _Fluent Bit_ OCI image to [v4.2.3](https://github.com/fluent/fluent-bit/releases/tag/v4.2.3). ([#697](https://github.com/fluent/helm-charts/pull/697)) _@stevehipwell_
28+
1729
## [v0.55.0] - 2026-01-22
1830

1931
### Changed
@@ -35,7 +47,10 @@
3547
<!--
3648
RELEASE LINKS
3749
-->
50+
3851
[UNRELEASED]: https://github.com/fluent/helm-charts/tree/main/charts/fluent-bit
52+
[v0.56.0]: https://github.com/fluent/helm-charts/releases/tag/fluent-bit-0.56.0
53+
[v0.55.1]: https://github.com/fluent/helm-charts/releases/tag/fluent-bit-0.55.1
3954
[v0.55.0]: https://github.com/fluent/helm-charts/releases/tag/fluent-bit-0.55.0
4055
[v0.54.1]: https://github.com/fluent/helm-charts/releases/tag/fluent-bit-0.54.1
4156
[v0.54.0]: https://github.com/fluent/helm-charts/releases/tag/fluent-bit-0.54.0

charts/fluent-bit/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
annotations:
22
artifacthub.io/changes: |-
3-
- kind: changed
4-
description: "Update Fluent Bit OCI image to 4.2.2."
3+
- kind: added
4+
description: "VPA recommender may be specified with .autoscaling.vpa."
55
apiVersion: v1
6-
appVersion: 4.2.2
6+
appVersion: 4.2.3
77
description: Fast and lightweight log processor and forwarder for Linux, OSX and BSD
88
family operating systems.
99
home: https://fluentbit.io/
@@ -24,4 +24,4 @@ maintainers:
2424
name: fluent-bit
2525
sources:
2626
- https://github.com/fluent/fluent-bit/
27-
version: 0.55.0
27+
version: 0.56.0

charts/fluent-bit/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# fluent-bit
22

3-
![Version: 0.55.0](https://img.shields.io/badge/Version-0.55.0-informational?style=flat-square) ![AppVersion: 4.2.2](https://img.shields.io/badge/AppVersion-4.2.2-informational?style=flat-square)
3+
![Version: 0.56.0](https://img.shields.io/badge/Version-0.56.0-informational?style=flat-square) ![AppVersion: 4.2.3](https://img.shields.io/badge/AppVersion-4.2.3-informational?style=flat-square)
44

55
Fast and lightweight log processor and forwarder for Linux, OSX and BSD family operating systems.
66

@@ -26,15 +26,15 @@ Fast and lightweight log processor and forwarder for Linux, OSX and BSD family o
2626
To install the chart using the recommended OCI method you can use the following command.
2727

2828
```shell
29-
helm upgrade --install fluent-bit oci://ghcr.io/fluent/helm-charts/fluent-bit --version 0.55.0
29+
helm upgrade --install fluent-bit oci://ghcr.io/fluent/helm-charts/fluent-bit --version 0.56.0
3030
```
3131

3232
#### Verification
3333

3434
As the OCI chart release is signed by [Cosign](https://github.com/sigstore/cosign) you can verify the chart before installing it by running the following command.
3535

3636
```shell
37-
cosign verify --certificate-oidc-issuer https://token.actions.githubusercontent.com --certificate-identity-regexp 'https://github\.com/action-stars/helm-workflows/\.github/workflows/release\.yaml@.+' --certificate-github-workflow-repository fluent/helm-charts --certificate-github-workflow-name Release ghcr.io/fluent/helm-charts/fluent-bit:0.55.0
37+
cosign verify --certificate-oidc-issuer https://token.actions.githubusercontent.com --certificate-identity-regexp 'https://github\.com/action-stars/helm-workflows/\.github/workflows/release\.yaml@.+' --certificate-github-workflow-repository fluent/helm-charts --certificate-github-workflow-name Release ghcr.io/fluent/helm-charts/fluent-bit:0.56.0
3838
```
3939

4040
### Non-OCI Repository
@@ -43,7 +43,7 @@ Alternatively you can use the legacy non-OCI method via the following commands.
4343

4444
```shell
4545
helm repo add fluent https://fluent.github.io/helm-charts/
46-
helm upgrade --install fluent-bit fluent/fluent-bit --version 0.55.0
46+
helm upgrade --install fluent-bit fluent/fluent-bit --version 0.56.0
4747
```
4848

4949
## Values
@@ -66,6 +66,7 @@ helm upgrade --install fluent-bit fluent/fluent-bit --version 0.55.0
6666
| autoscaling.vpa.enabled | bool | `false` | |
6767
| autoscaling.vpa.maxAllowed | object | `{}` | |
6868
| autoscaling.vpa.minAllowed | object | `{}` | |
69+
| autoscaling.vpa.recommender | string | `"default"` | |
6970
| autoscaling.vpa.updatePolicy.updateMode | string | `"Auto"` | |
7071
| command[0] | string | `"/fluent-bit/bin/fluent-bit"` | |
7172
| config.customParsers | string | `"[PARSER]\n Name docker_no_time\n Format json\n Time_Keep Off\n Time_Key time\n Time_Format %Y-%m-%dT%H:%M:%S.%L\n"` | |

charts/fluent-bit/RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
### Changed
1+
### Added
22

3-
- Update Fluent Bit OCI image to [4.2.2](https://github.com/fluent/fluent-bit/releases/tag/v4.2.2). ([#684](https://github.com/fluent/helm-charts/pull/684)) _@stevehipwell_
3+
- VPA recommender may be specified with `.autoscaling.vpa.recommender`

charts/fluent-bit/templates/vpa.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ metadata:
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
1313
spec:
14+
recommenders:
15+
- name: {{ .Values.autoscaling.vpa.recommender }}
1416
resourcePolicy:
1517
containerPolicies:
1618
- containerName: {{ .Chart.Name }}

charts/fluent-bit/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ autoscaling:
257257
# cpu: 200m
258258
# memory: 100Mi
259259

260+
# Name of the VPA recommender that will provide recommendations for vertical scaling.
261+
recommender: default
262+
260263
updatePolicy:
261264
# Specifies whether recommended updates are applied when a Pod is started and whether recommended updates
262265
# are applied during the life of a Pod. Possible values are "Off", "Initial", "Recreate", and "Auto".

0 commit comments

Comments
 (0)