1 Commits

Author SHA1 Message Date
Jochem
62b40e4657 Add ingress object (#16) (#17)
* Add ingress object (#16)

* Add ingress and testing values

* Bump version

* Fix CI values
2024-07-12 11:29:09 +02:00
7 changed files with 157 additions and 430 deletions

View File

@@ -2,7 +2,7 @@ apiVersion: v2
name: librenms
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system.
type: application
version: 3.11.1
version: 3.12.0
appVersion: "24.5.0"
maintainers:
- name: TheChef23

View File

@@ -1,5 +1,5 @@
# LibreNMS
![Version: 3.11.0](https://img.shields.io/badge/Version-3.11.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 24.5.0](https://img.shields.io/badge/AppVersion-24.5.0-informational?style=flat-square)
![Version: 3.12.0](https://img.shields.io/badge/Version-3.12.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 24.5.0](https://img.shields.io/badge/AppVersion-24.5.0-informational?style=flat-square)
## TL;DR
@@ -47,12 +47,17 @@ librenms:
### Available values
The following table lists the main configurable parameters of the librenms chart v3.11.0 and their default values. Please, refer to [values.yaml](./values.yaml) for the full list of configurable parameters.
The following table lists the main configurable parameters of the librenms chart v3.12.0 and their default values. Please, refer to [values.yaml](./values.yaml) for the full list of configurable parameters.
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| ingress | object | `{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}` | LibreNMS ingress configuration |
| ingress.annotations | object | `{}` | Ingress annotations |
| ingress.className | string | `""` | Ingress class name |
| ingress.enabled | bool | `false` | Enable or disable ingress |
| ingress.hosts | list | `[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]` | Ingress ingress rules |
| librenms.appkey | string | `nil` | Laravel appkey used by LibreNMS, this should be generated by you and is a required setting. See the README for more information |
| librenms.configuration | string | `"$config['distributed_poller_group'] = '0';\n$config['distributed_poller'] = true;\n"` | Custom configuration options for LibreNMS. Fore more infomation on options in this file check the following link: https://docs.librenms.org/Support/Configuration/ |
| librenms.extraEnvs | object | `{}` | LibreNMS frontend extra envs |

View File

@@ -1,2 +1,4 @@
librenms:
appkey: base64:RTMmh+i10E2RMcDxookMu47BTzJQy87hOU+k/zcuPnA=
ingress:
enabled: true

View File

@@ -1,3 +1,66 @@
{{- define "librenms.configChecksum" -}}
{{- include (print $.Template.BasePath "/librenms-configmap.yml") . | sha256sum -}}
{{- end -}}
{{/*
Expand the name of the chart.
*/}}
{{- define "librenms.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "librenms.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "librenms.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "librenms.labels" -}}
helm.sh/chart: {{ include "librenms.chart" . }}
{{ include "librenms.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "librenms.selectorLabels" -}}
app.kubernetes.io/name: {{ include "librenms.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "librenms.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "librenms.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

View File

@@ -0,0 +1,62 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := .Release.Name -}}
{{- $svcPort := 8000 -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ .Release.Name }}
labels:
app.kubernetes.io/name: {{ .Release.Name }}
app.kubernetes.io/instance: frontend
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

View File

@@ -123,6 +123,27 @@ librenms:
# -- Extra environment variable for RRDCACHED container
extraEnvs: {}
# -- LibreNMS ingress configuration
ingress:
# -- Enable or disable ingress
enabled: false
# -- Ingress class name
className: ""
# -- Ingress annotations
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- Ingress ingress rules
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
# -- Configuration for MySQL dependency chart by Bitnami. See their chart for
# more information: https://github.com/bitnami/charts/tree/master/bitnami/mysql
mysql:

View File

@@ -1,426 +0,0 @@
apiVersion: v1
entries:
librenms:
- apiVersion: v2
appVersion: 25.5.0
created: "2025-05-19T08:08:48.060573985Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~21.1.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~13.0.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: e057d117eee24d93c66d01ed142f7fccdd98ef1ff9edd061193c0ce35d80c619
maintainers:
- name: jacobw
url: https://github.com/jacobw
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-5.0.2/librenms-5.0.2.tgz
version: 5.0.2
- apiVersion: v2
appVersion: 25.4.0
created: "2025-05-08T07:37:51.777190798Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~21.0.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~12.3.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: cc87cc5dc6eac81fbe9f8a3ccd992f19ebac2fa89cd632d46be1fb08d98e0776
maintainers:
- name: jacobw
url: https://github.com/jacobw
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-5.0.1/librenms-5.0.1.tgz
version: 5.0.1
- apiVersion: v2
appVersion: 25.4.0
created: "2025-04-26T02:32:46.351929859Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.12.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~12.3.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 321a3c790037ec9446ef8b39d9e5dcaccc0b807e48fa95399e2726219d19fda9
maintainers:
- name: jacobw
url: https://github.com/jacobw
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-5.0.0/librenms-5.0.0.tgz
version: 5.0.0
- apiVersion: v2
appVersion: 25.4.0
created: "2025-04-16T08:48:51.443809454Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.12.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~12.3.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 0437ed647cbe2dd55d943650ad475e77343fe1d314974235056346dabd98bf9e
maintainers:
- name: jacobw
url: https://github.com/jacobw
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-4.0.3/librenms-4.0.3.tgz
version: 4.0.3
- apiVersion: v2
appVersion: 25.3.0
created: "2025-04-12T08:58:01.130226049Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.11.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~12.3.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 41f6f51ed03750d6fc3d80e76d247e4dbac016b0bed0efd3df9978109e3f2d4c
maintainers:
- name: jochbru
url: https://github.com/jochbru
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-4.0.2/librenms-4.0.2.tgz
version: 4.0.2
- apiVersion: v2
appVersion: 25.3.0
created: "2025-04-12T08:38:57.561682176Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.11.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~12.3.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 988f150781c74e09ed4025f79aebc2b728577b56a114e8e1121f64405fbf81b2
maintainers:
- name: jochbru
url: https://github.com/jochbru
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-4.0.1/librenms-4.0.1.tgz
version: 4.0.1
- apiVersion: v2
appVersion: 25.3.0
created: "2025-03-20T07:01:41.534621587Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.11.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~12.3.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 4b3b8b289fac28ed556ea73149e6fc6e215613aec280d9026dfd878ea8afc6b8
maintainers:
- name: jochbru
url: https://github.com/jochbru
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-4.0.0/librenms-4.0.0.tgz
version: 4.0.0
- apiVersion: v2
appVersion: 25.2.0
created: "2025-03-13T06:31:02.967722698Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.11.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~11.1.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 118723fef559c1c4a1f6403f52140e46d03aa04ada5add3286dd83abfcdcb794
maintainers:
- name: jochbru
url: https://github.com/jochbru
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.19.0/librenms-3.19.0.tgz
version: 3.19.0
- apiVersion: v2
appVersion: 24.12.0
created: "2025-01-13T10:03:13.956902972Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.6.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~11.1.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 4c9f8e0973ddee4f6d41b580f368a3ff1f084378bc1ef094614a2c44a15b70cf
maintainers:
- name: jochbru
url: https://github.com/jochbru
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.18.0/librenms-3.18.0.tgz
version: 3.18.0
- apiVersion: v2
appVersion: 24.11.0
created: "2024-12-03T13:24:14.326061196Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.4.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~11.1.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 2b9e9a8a72806a0ae817b1bf6cc6afbdd7f5f677bb7be229f39475a8c6683c38
maintainers:
- name: jochbru
url: https://github.com/jochbru
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.17.0/librenms-3.17.0.tgz
version: 3.17.0
- apiVersion: v2
appVersion: 24.10.1
created: "2024-12-03T13:08:49.647519858Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.4.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~11.1.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: e0c42b21d1e51a63974d1e7d4cbe61173ce91017e43a9083e4b86cf70b143839
maintainers:
- name: jochbru
url: https://github.com/jochbru
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.16.0/librenms-3.16.0.tgz
version: 3.16.0
- apiVersion: v2
appVersion: 24.8.1
created: "2024-09-01T15:26:42.164519448Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.0.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~11.1.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 20b70c2406bb17208a9c7d16b5f5c61cc8b077aaabba0b558f6e835c529347e9
maintainers:
- name: jochbru
url: https://github.com/jochbru
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.15.0/librenms-3.15.0.tgz
version: 3.15.0
- apiVersion: v2
appVersion: 24.6.0
created: "2024-08-15T12:32:55.294614287Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~20.0.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~11.1.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 2824feb52a499362063028633c2656b56710c1c0c8387323dad4d5379f0bcf6e
maintainers:
- name: jochbru
url: https://github.com/jochbru
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.14.0/librenms-3.14.0.tgz
version: 3.14.0
- apiVersion: v2
appVersion: 24.6.0
created: "2024-07-31T10:34:08.414346621Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~19.6.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~11.1.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: b936bf32f8c541ffeaced38b2a413f03e0f0ddd75c2718acdb52e199e402beca
maintainers:
- name: jochbru
url: https://github.com/jochbru
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.13.1/librenms-3.13.1.tgz
version: 3.13.1
- apiVersion: v2
appVersion: 24.5.0
created: "2024-07-12T09:29:36.144670516Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~19.6.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~11.1.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 37b3b6542ae52f229a5226d7f637511b41b296a744c640972ec80c7ee2e82cf4
maintainers:
- name: TheChef23
url: https://github.com/TheChef23
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.12.0/librenms-3.12.0.tgz
version: 3.12.0
- apiVersion: v2
appVersion: 24.5.0
created: "2024-07-11T11:45:16.587674787Z"
dependencies:
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: ~19.6.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~11.1.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 0d7287d39c54989d60af6b70ebe91244803c6398f449096e8b8e46a0542eed39
maintainers:
- name: TheChef23
url: https://github.com/TheChef23
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.11.1/librenms-3.11.1.tgz
version: 3.11.1
- apiVersion: v2
appVersion: 24.5.0
created: "2024-07-05T13:18:30.320339416Z"
dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: ~19.6.0
- name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~10.3.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: 84092183b54f6bc5ef5df13dad19532efacfc365c3400f935e9f476cc5c3ebe2
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.10.0/librenms-3.10.0.tgz
version: 3.10.0
- apiVersion: v2
appVersion: 24.5.0
created: "2024-07-05T09:24:14.781324152Z"
dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: ~19.5.0
- name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~10.3.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: ef038280eb0179dabc862c0a1eba90b0c9c463307065d63079d1bb9c83a98c05
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.9.0/librenms-3.9.0.tgz
version: 3.9.0
- apiVersion: v2
appVersion: 24.5.0
created: "2024-07-05T08:57:32.971663651Z"
dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: ~19.5.0
- name: mysql
repository: https://charts.bitnami.com/bitnami
version: ~10.3.0
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring
system.
digest: bf4c8e7898ddf8aa81cb26be5fec44f54788b6c1eccfef642f26ac660c437473
name: librenms
type: application
urls:
- https://github.com/librenms/helm-charts/releases/download/librenms-3.8.0/librenms-3.8.0.tgz
version: 3.8.0
generated: "2025-05-19T08:08:48.060729017Z"