Skip to content

Commit

Permalink
Merge pull request #22 from jwitrick/master
Browse files Browse the repository at this point in the history
Add variable for additional exposed Ports/Services
  • Loading branch information
Naseem authored Jun 16, 2020
2 parents 7a057dc + 9e2cacd commit 9064a4c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords:
- logging
- fluent-bit
- fluentd
version: 0.3.1
version: 0.3.2
appVersion: 1.4.4
icon: https://fluentbit.io/assets/img/logo1-default.png
home: https://fluentbit.io/
Expand Down
1 change: 1 addition & 0 deletions charts/fluent-bit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ helm install fluent-bit fluent/fluent-bit
| config.service | string | `"[SERVICE]\n Flush 1\n Daemon Off\n Log_Level info\n Parsers_File parsers.conf\n Parsers_File custom_parsers.conf\n HTTP_Server On\n HTTP_Listen 0.0.0.0\n HTTP_Port 2020\n"` | |
| env | list | `[]` | |
| envFrom | list | `[]` | |
| extraPorts | list | `[]`| |
| extraVolumeMounts | list | `[]` | |
| extraVolumes | list | `[]` | |
| fullnameOverride | string | `""` | |
Expand Down
7 changes: 7 additions & 0 deletions charts/fluent-bit/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ spec:
- name: http
containerPort: 2020
protocol: TCP
{{- if .Values.extraPorts }}
{{- range .Values.extraPorts }}
- name: {{ .name }}
containerPort: {{ .containerPort }}
protocol: {{ .protocol }}
{{- end }}
{{- end }}
livenessProbe:
httpGet:
path: /
Expand Down
8 changes: 8 additions & 0 deletions charts/fluent-bit/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,13 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if .Values.extraPorts }}
{{- range .Values.extraPorts }}
- name: {{ .name }}
targetPort: {{ .name }}
protocol: {{ .protocol }}
port: {{ .port }}
{{- end }}
{{- end }}
selector:
{{- include "fluent-bit.selectorLabels" . | nindent 4 }}
6 changes: 6 additions & 0 deletions charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ env: []

envFrom: []

extraPorts: []
# - port: 5170
# containerPort: 5170
# protocol: TCP
# name: tcp

extraVolumes: []

extraVolumeMounts: []
Expand Down

0 comments on commit 9064a4c

Please sign in to comment.