Skip to content

Commit

Permalink
fix(LibreNMS): Add remote syslog logs (#18)
Browse files Browse the repository at this point in the history
* Fix syslog ingest logs and allow disabling TCP/UDP protocols
* Bump application and chart version
* Update chart service dependencies
  • Loading branch information
duhow authored Apr 29, 2022
1 parent 94bb6b4 commit 380102b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 5 additions & 5 deletions charts/librenms/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ maintainers:
- name: David Girón
url: https://github.com/duhow

version: 0.2.10
version: 0.2.11
# renovate: datasource=docker depName=librenms/librenms
appVersion: 22.2.1
appVersion: 22.4.1

dependencies:
- name: mariadb
alias: mysql
repository: https://charts.bitnami.com/bitnami
version: 10.3.7
version: 10.5.1
condition: mysql.install
- name: memcached
repository: https://charts.bitnami.com/bitnami
version: 6.0.5
version: 6.0.16
condition: memcached.install
tags:
- distributed-poller
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 16.4.5
version: 16.8.9
condition: redis.install
tags:
- distributed-poller
10 changes: 10 additions & 0 deletions charts/librenms/templates/service-syslog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,30 @@ metadata:
{{- include "librenms.syslog.labels" . | nindent 4 }}
spec:
type: {{ .Values.syslog.service.type }}
# add source IP address
externalTrafficPolicy: Local
ports:
{{- if (.Values.syslog.service.ports.tcp) }}
- name: syslog-tcp
port: {{ .Values.syslog.service.ports.tcp }}
targetPort: syslog-tcp
protocol: TCP
{{- if (eq .Values.syslog.service.type "ClusterIP") }}
nodePort: null
{{- else if (eq .Values.syslog.service.type "NodePort") }}
nodePort: {{ .Values.syslog.service.ports.tcp }}
{{- end }}
{{- end }}
{{- if (.Values.syslog.service.ports.udp) }}
- name: syslog
port: {{ .Values.syslog.service.ports.udp }}
targetPort: syslog-udp
protocol: UDP
{{- if (eq .Values.syslog.service.type "ClusterIP") }}
nodePort: null
{{- else if (eq .Values.syslog.service.type "NodePort") }}
nodePort: {{ .Values.syslog.service.ports.udp }}
{{- end }}
{{- end }}
selector:
{{- include "librenms.syslog.selectorLabels" . | nindent 4 }}

0 comments on commit 380102b

Please sign in to comment.