mirror of
https://github.com/bitnami/charts.git
synced 2026-02-10 03:17:20 +08:00
[bitnami/fluent-bit] Added support for extraContainerPorts (#33083)
This commit is contained in:
committed by
GitHub
parent
9d364ee60b
commit
d1089a0eab
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 3.1.0 (2025-04-21)
|
||||
|
||||
* [bitnami/fluent-bit] Added support for extraContainerPorts ([#33083](https://github.com/bitnami/charts/pull/33083))
|
||||
|
||||
## 3.0.0 (2025-04-02)
|
||||
|
||||
* [bitnami/fluent-bit] Release 3.0.0 ([#32779](https://github.com/bitnami/charts/pull/32779))
|
||||
* [bitnami/fluent-bit] Release 3.0.0 (#32779) ([1c82162](https://github.com/bitnami/charts/commit/1c821623a0a03ad80ff88c64fe6bb54347a09772)), closes [#32779](https://github.com/bitnami/charts/issues/32779)
|
||||
|
||||
## <small>2.5.7 (2025-03-25)</small>
|
||||
|
||||
|
||||
@@ -29,4 +29,4 @@ maintainers:
|
||||
name: fluent-bit
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/fluent-bit
|
||||
version: 3.0.0
|
||||
version: 3.1.0
|
||||
|
||||
@@ -75,6 +75,25 @@ It is strongly recommended to use immutable tags in a production environment. Th
|
||||
|
||||
Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.
|
||||
|
||||
### Configure extraPorts
|
||||
|
||||
- Based on your fluent-bit configuration, edit the `extraContainerPorts` and `service.extraPorts` parameters. In the `extraContainerPorts` parameter, set the extra ports that the fluent-bit configuration uses, and in the `service.extraPorts` parameter, set the extra ports to be externally exposed.
|
||||
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
service:
|
||||
extraPorts:
|
||||
- name: forward
|
||||
port: 24224 # We use port 24224 for receiving logs over TCP
|
||||
protocol: TCP
|
||||
targetPort: forward
|
||||
|
||||
extraContainerPorts:
|
||||
- name: forward
|
||||
containerPort: 24224
|
||||
```
|
||||
|
||||
### Backup and restore
|
||||
|
||||
To back up and restore Helm chart deployments on Kubernetes, you need to back up the persistent volumes from the source deployment and attach them to a new deployment using [Velero](https://velero.io/), a Kubernetes backup/restore tool. Find the instructions for using Velero in [this guide](https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-backup-restore-deployments-velero-index.html).
|
||||
@@ -220,6 +239,7 @@ The [Bitnami Fluent Bit](https://github.com/bitnami/containers/tree/main/bitnami
|
||||
| `resources` | Set container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` |
|
||||
| `extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for fluent-bit container | `[]` |
|
||||
| `containerPorts.http` | Port for HTTP port | `2020` |
|
||||
| `extraContainerPorts` | Optionally specify extra list of additional ports for fluent-bit containers | `[]` |
|
||||
| `service.type` | Fluent Bit service type | `ClusterIP` |
|
||||
| `service.ports.http` | Port for HTTP port | `2020` |
|
||||
| `service.nodePorts.http` | Node port for HTTP port | `""` |
|
||||
@@ -383,4 +403,4 @@ Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
limitations under the License.
|
||||
|
||||
@@ -92,6 +92,9 @@ spec:
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.containerPorts.http }}
|
||||
{{- if .Values.extraContainerPorts }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.extraContainerPorts "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
env:
|
||||
{{- if .Values.extraEnvVars }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
|
||||
|
||||
@@ -37,6 +37,9 @@ spec:
|
||||
# Allow connection to other aggregator pods
|
||||
- ports:
|
||||
- port: {{ .Values.containerPorts.http }}
|
||||
{{- range .Values.extraContainerPorts }}
|
||||
- port: {{ .containerPort }}
|
||||
{{- end }}
|
||||
to:
|
||||
- podSelector:
|
||||
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 14 }}
|
||||
@@ -47,6 +50,9 @@ spec:
|
||||
ingress:
|
||||
- ports:
|
||||
- port: {{ .Values.containerPorts.http }}
|
||||
{{- range .Values.extraContainerPorts }}
|
||||
- port: {{ .containerPort }}
|
||||
{{- end }}
|
||||
{{- if not .Values.networkPolicy.allowExternal }}
|
||||
from:
|
||||
- podSelector:
|
||||
|
||||
@@ -260,6 +260,13 @@ containerPorts:
|
||||
## @param containerPorts.http Port for HTTP port
|
||||
##
|
||||
http: 2020
|
||||
## @param extraContainerPorts Optionally specify extra list of additional ports for fluent-bit containers
|
||||
## e.g:
|
||||
## extraContainerPorts:
|
||||
## - name: forward
|
||||
## containerPort: 24224
|
||||
##
|
||||
extraContainerPorts: []
|
||||
## Fluent Bit service parameters
|
||||
##
|
||||
service:
|
||||
|
||||
Reference in New Issue
Block a user