-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[promtail helm chart] Enable support for syslog service (#1617)
* Enable support for dynamic extra ports This should allow the chart to be configured for extra exposed ports like syslog (port 1514) for example Signed-off-by: Jeff Billimek <jeff@billimek.com> * making syslog its own optional service Signed-off-by: Jeff Billimek <jeff@billimek.com> * syslogService config should be at top level Signed-off-by: Jeff Billimek <jeff@billimek.com> * fixing linting error Signed-off-by: Jeff Billimek <jeff@billimek.com> * Enhancing chart documentation with syslog example Signed-off-by: Jeff Billimek <jeffrey_k_billimek@homedepot.com>
- Loading branch information
Showing
6 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{- if .Values.syslogService.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "promtail.fullname" . }}-syslog | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: {{ template "promtail.name" . }} | ||
chart: {{ template "promtail.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
{{- with .Values.syslogService.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
annotations: | ||
{{- toYaml .Values.syslogService.annotations | nindent 4 }} | ||
spec: | ||
type: {{ .Values.syslogService.type }} | ||
{{- if (and (eq .Values.syslogService.type "ClusterIP") (not (empty .Values.syslogService.clusterIP))) }} | ||
clusterIP: {{ .Values.syslogService.clusterIP }} | ||
{{- end }} | ||
{{- if .Values.syslogService.loadBalancerSourceRanges }} | ||
loadBalancerSourceRanges: | ||
{{- range $cidr := .Values.syslogService.loadBalancerSourceRanges }} | ||
- {{ $cidr }} | ||
{{- end }} | ||
{{- end }} | ||
ports: | ||
- port: {{ .Values.syslogService.port }} | ||
protocol: TCP | ||
name: syslog | ||
targetPort: syslog | ||
{{- if (and (eq .Values.syslogService.type "NodePort") (not (empty .Values.syslogService.nodePort))) }} | ||
nodePort: {{ .Values.syslogService.nodePort }} | ||
{{- end }} | ||
{{- if .Values.extraPorts }} | ||
{{ toYaml .Values.extraPorts | indent 4}} | ||
{{- end }} | ||
selector: | ||
app: {{ template "promtail.name" . }} | ||
release: {{ .Release.Name }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters