forked from RemoteSync/librnms-helm-charts
Compare commits
62 Commits
ingress
...
librenms-3
Author | SHA1 | Date | |
---|---|---|---|
|
c50c590525 | ||
|
f2ef463308 | ||
|
ec8f70e569 | ||
|
7ae6ec6cc2 | ||
|
e8338ad154 | ||
|
2ec9adf4b8 | ||
|
45b101b8ec | ||
|
de78ede4dc | ||
|
b6b3d503f8 | ||
|
13341a88dc | ||
|
00347b6d27 | ||
|
b624805f38 | ||
|
09a05df2a3 | ||
|
985c0fd9e2 | ||
|
785e822f21 | ||
|
0c0bdae1fc | ||
|
efc92a5626 | ||
|
be6c80bfcf | ||
|
c836396f41 | ||
|
0890ed62e1 | ||
|
64b0561eb1 | ||
|
e79e28375b | ||
|
988be4d222 | ||
|
1d606523df | ||
|
ddf5588472 | ||
|
c50632da6f | ||
|
e01578ccab | ||
|
b09c567c54 | ||
|
d6578502af | ||
|
56adeb51e6 | ||
|
4225c25eee | ||
|
04b2891002 | ||
|
3c35474565 | ||
|
ecd0ac7568 | ||
|
270d48319a | ||
|
42250bfe2f | ||
|
1fc504b2a7 | ||
|
50385f322d | ||
|
148289bc04 | ||
|
32e6757ac6 | ||
|
0298cf9752 | ||
|
1a5eb5f378 | ||
|
c614f34af0 | ||
|
3a674c499e | ||
|
8ab2cf737c | ||
|
6a3ed61098 | ||
|
2b87f80fcb | ||
|
4e563ae728 | ||
|
767f882144 | ||
|
8f119860eb | ||
|
70cb6d8662 | ||
|
4c11249a68 | ||
|
92c00d2780 | ||
|
992ba1c6c2 | ||
|
4f2053a1c5 | ||
|
abdee24ec3 | ||
|
c90f6e3189 | ||
|
6d597db8ee | ||
|
62b40e4657 | ||
|
bb54381e1d | ||
|
8750eca39b | ||
|
cd178d3a0a |
6
.github/workflows/chart-testing.yml
vendored
6
.github/workflows/chart-testing.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Helm
|
||||
uses: azure/setup-helm@v4.2.0
|
||||
uses: azure/setup-helm@v4.3.0
|
||||
with:
|
||||
version: v3.14.4
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
check-latest: true
|
||||
|
||||
- name: Set up chart-testing
|
||||
uses: helm/chart-testing-action@v2.6.1
|
||||
uses: helm/chart-testing-action@v2.7.0
|
||||
|
||||
- name: Add repositories
|
||||
run: |
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
|
||||
- name: Create kind cluster
|
||||
if: steps.list-changed.outputs.changed == 'true' || github.event.pull_request.base.ref == 'main'
|
||||
uses: helm/kind-action@v1.10.0
|
||||
uses: helm/kind-action@v1.12.0
|
||||
|
||||
- name: Run chart-testing (install)
|
||||
if: steps.list-changed.outputs.changed == 'true' && github.ref != 'refs/heads/develop'
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -29,6 +29,6 @@ jobs:
|
||||
done
|
||||
|
||||
- name: Run chart-releaser
|
||||
uses: helm/chart-releaser-action@v1.6.0
|
||||
uses: helm/chart-releaser-action@v1.7.0
|
||||
env:
|
||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
@@ -1,9 +1,9 @@
|
||||
dependencies:
|
||||
- name: redis
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
version: 19.6.1
|
||||
version: 20.11.2
|
||||
- name: mysql
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
version: 11.1.8
|
||||
digest: sha256:4b82fafdf2c4c72a003d1dc6df9343a089eb5d2f686927d134821854f9633c83
|
||||
generated: "2024-07-09T10:22:10.255911997Z"
|
||||
version: 11.1.20
|
||||
digest: sha256:98e21356d5f7a0ae37cc2bcd0fe3b55ad80bb892e0ecee13551164ed5580f527
|
||||
generated: "2025-03-10T08:50:31.291990148Z"
|
||||
|
@@ -2,14 +2,14 @@ apiVersion: v2
|
||||
name: librenms
|
||||
description: LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system.
|
||||
type: application
|
||||
version: 3.11.1
|
||||
appVersion: "24.5.0"
|
||||
version: 3.19.0
|
||||
appVersion: "25.2.0"
|
||||
maintainers:
|
||||
- name: TheChef23
|
||||
url: https://github.com/TheChef23
|
||||
- name: jochbru
|
||||
url: https://github.com/jochbru
|
||||
dependencies:
|
||||
- name: redis
|
||||
version: "~19.6.0"
|
||||
version: "~20.11.0"
|
||||
repository: "https://charts.bitnami.com/bitnami"
|
||||
condition: redis.enabled
|
||||
- name: mysql
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# LibreNMS
|
||||
  
|
||||
  
|
||||
|
||||
## 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 |
|
||||
|
@@ -1,2 +1,4 @@
|
||||
librenms:
|
||||
appkey: base64:RTMmh+i10E2RMcDxookMu47BTzJQy87hOU+k/zcuPnA=
|
||||
ingress:
|
||||
enabled: true
|
||||
|
@@ -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 }}
|
||||
|
62
charts/librenms/templates/ingress.yml
Normal file
62
charts/librenms/templates/ingress.yml
Normal 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 }}
|
@@ -55,7 +55,7 @@ spec:
|
||||
- name: files
|
||||
mountPath: /data/files
|
||||
- name: files
|
||||
mountPath: /opt/librenms/custom.php
|
||||
mountPath: /data/config/custom.php
|
||||
subPath: custom.php
|
||||
readOnly: true
|
||||
- name: mysql
|
||||
|
@@ -6,7 +6,7 @@ librenms:
|
||||
# -- repository is the image repository to pull from.
|
||||
repository: librenms/librenms
|
||||
# -- tag is image tag to pull.
|
||||
tag: 24.5.0
|
||||
tag: 25.2.0
|
||||
|
||||
# -- Laravel appkey used by LibreNMS, this should be generated by you and is a
|
||||
# required setting. See the README for more information
|
||||
@@ -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:
|
||||
|
Reference in New Issue
Block a user