forked from RemoteSync/librnms-helm-charts
Compare commits
113 Commits
librenms-3
...
librenms-e
Author | SHA1 | Date | |
---|---|---|---|
22056e3944 | |||
|
e96aafcb1d | ||
|
f12cd6636b | ||
|
db52c5ce10 | ||
|
1d8729a2d4 | ||
|
ed759f6cd2 | ||
|
6ea6e19c12 | ||
|
126e5d1308 | ||
|
10e3bf6e3c | ||
|
5a11d5a1da | ||
|
3d95ae7da4 | ||
|
c6a75c9f73 | ||
|
8924ca512c | ||
|
a3269b5660 | ||
|
a90a92e28e | ||
|
ff183d966b | ||
|
6f475c1805 | ||
|
74d812de38 | ||
|
e2b796d3ab | ||
|
d4d64e857d | ||
|
a37879be3d | ||
|
0a99414d6a | ||
|
9e10305468 | ||
|
3d20312f7b | ||
|
250731eac6 | ||
|
1a0505e922 | ||
|
4e36066209 | ||
|
898d96c47f | ||
|
e73232c1f7 | ||
|
390dad5420 | ||
|
b9d2d7938c | ||
|
0f1273e210 | ||
|
c9dc30d003 | ||
|
1c38283500 | ||
|
c5ef28897e | ||
|
a4aae9d8bd | ||
|
b4a29df58c | ||
|
b03dcec8dd | ||
|
9bb7058da6 | ||
|
9746efa489 | ||
|
0c6c9d3bef | ||
|
69892fd155 | ||
|
4ef38d9ce1 | ||
|
43e9b90822 | ||
|
62d381f444 | ||
|
61f573cf40 | ||
|
d6725a562f | ||
|
e52e4ca911 | ||
|
d7d5a25941 | ||
|
dab97a4d19 | ||
|
45db6b2ba7 | ||
|
c50c590525 | ||
|
f2ef463308 | ||
|
ec8f70e569 | ||
|
7ae6ec6cc2 | ||
|
e8338ad154 | ||
|
2ec9adf4b8 | ||
|
5d508b16df | ||
|
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 |
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'
|
||||
|
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
@@ -7,6 +7,8 @@ jobs:
|
||||
if: github.ref == 'refs/heads/main'
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -29,6 +31,24 @@ 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 }}"
|
||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
|
||||
# see https://github.com/helm/chart-releaser/issues/183
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Push charts to GHCR
|
||||
run: |
|
||||
shopt -s nullglob
|
||||
for pkg in .cr-release-packages/*; do
|
||||
if [ -z "${pkg:-}" ]; then
|
||||
break
|
||||
fi
|
||||
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts"
|
||||
done
|
@@ -1,9 +1,9 @@
|
||||
dependencies:
|
||||
- name: redis
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
version: 19.6.1
|
||||
version: 21.1.3
|
||||
- name: mysql
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
version: 11.1.8
|
||||
digest: sha256:4b82fafdf2c4c72a003d1dc6df9343a089eb5d2f686927d134821854f9633c83
|
||||
generated: "2024-07-09T10:22:10.255911997Z"
|
||||
version: 13.0.0
|
||||
digest: sha256:ab48525b17834c3b7e491483bb35fad9d11ddbf74368a352cafd59dbbe34d940
|
||||
generated: "2025-05-19T07:25:23.570909791Z"
|
||||
|
@@ -2,17 +2,17 @@ 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: 5.0.2
|
||||
appVersion: "25.5.0"
|
||||
maintainers:
|
||||
- name: TheChef23
|
||||
url: https://github.com/TheChef23
|
||||
- name: jacobw
|
||||
url: https://github.com/jacobw
|
||||
dependencies:
|
||||
- name: redis
|
||||
version: "~19.6.0"
|
||||
version: "~21.1.0"
|
||||
repository: "https://charts.bitnami.com/bitnami"
|
||||
condition: redis.enabled
|
||||
- name: mysql
|
||||
version: "~11.1.0"
|
||||
version: "~13.0.0"
|
||||
repository: "https://charts.bitnami.com/bitnami"
|
||||
condition: mysql.enabled
|
||||
|
@@ -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 +0,0 @@
|
||||
APP_KEY={{.Values.librenms.appkey}}
|
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
TARGET="/data/env-volume/env"
|
||||
echo "Target: $TARGET"
|
||||
cp /data/files/env $TARGET
|
||||
echo -e "\nNODE_ID=`hostname`" >> $TARGET
|
||||
echo "APP_KEY=$(cat /data/key/appkey)" > $TARGET
|
||||
echo "NODE_ID=$(hostname)" >> $TARGET
|
||||
|
||||
cat $TARGET
|
||||
|
@@ -1,3 +1,77 @@
|
||||
{{- 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 }}
|
||||
|
||||
{{/*
|
||||
Create the name of the secret to use
|
||||
*/}}
|
||||
{{- define "librenms.secretName" -}}
|
||||
{{- if .Values.librenms.existingSecret -}}
|
||||
{{- .Values.librenms.existingSecret -}}
|
||||
{{- else -}}
|
||||
{{- .Release.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 }}
|
@@ -6,15 +6,19 @@ metadata:
|
||||
data:
|
||||
TZ: {{ .Values.librenms.timezone}}
|
||||
DB_TIMEOUT: "60"
|
||||
RRDCACHED_SERVER: "{{ .Release.Name }}-rrdcached:42217"
|
||||
{{- if .Values.redis.enabled }}
|
||||
REDIS_HOST: {{ .Release.Name }}-redis-master
|
||||
REDIS_PORT: "6379"
|
||||
REDIS_DB: "0"
|
||||
RRDCACHED_SERVER: "{{ .Release.Name }}-rrdcached:42217"
|
||||
CACHE_DRIVER: redis
|
||||
SESSION_DRIVER: redis
|
||||
{{- end }}
|
||||
{{- if .Values.mysql.enabled }}
|
||||
DB_HOST: {{ .Release.Name }}-mysql
|
||||
DB_USERNAME: {{.Values.mysql.auth.username}}
|
||||
DB_DATABASE: {{.Values.mysql.auth.database}}
|
||||
{{- end }}
|
||||
---
|
||||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
@@ -23,7 +27,5 @@ metadata:
|
||||
data:
|
||||
custom.php: |-
|
||||
{{ tpl (.Files.Get "files/custom.php") . | indent 4 }}
|
||||
env: |-
|
||||
{{ tpl (.Files.Get "files/env") . | indent 4 }}
|
||||
init.sh: |-
|
||||
{{ tpl (.Files.Get "files/init.sh") . | indent 4 }}
|
||||
{{ .Files.Get "files/init.sh" | indent 4 }}
|
@@ -19,13 +19,18 @@ spec:
|
||||
volumes:
|
||||
- name: env-volume
|
||||
emptyDir: {}
|
||||
- name: key
|
||||
secret:
|
||||
secretName: {{ include "librenms.secretName" . }}
|
||||
- name: files
|
||||
configMap:
|
||||
name: {{ .Release.Name }}-files
|
||||
{{- if .Values.mysql.enabled }}
|
||||
- name: mysql
|
||||
secret:
|
||||
secretName: {{ .Release.Name }}-mysql
|
||||
optional: false
|
||||
optional: false
|
||||
{{- end }}
|
||||
initContainers:
|
||||
- name: init
|
||||
image: busybox:1.28
|
||||
@@ -33,6 +38,8 @@ spec:
|
||||
volumeMounts:
|
||||
- name: env-volume
|
||||
mountPath: /data/env-volume
|
||||
- name: key
|
||||
mountPath: /data/key
|
||||
- name: files
|
||||
mountPath: /data/files
|
||||
containers:
|
||||
@@ -43,11 +50,13 @@ spec:
|
||||
- configMapRef:
|
||||
name: {{ .Release.Name }}
|
||||
env:
|
||||
{{- if .Values.mysql.enabled }}
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Release.Name }}-mysql
|
||||
key: mysql-password
|
||||
{{- end }}
|
||||
{{- with .Values.librenms.extraEnvs }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
@@ -55,11 +64,13 @@ spec:
|
||||
- name: files
|
||||
mountPath: /data/files
|
||||
- name: files
|
||||
mountPath: /opt/librenms/custom.php
|
||||
mountPath: /data/config/custom.php
|
||||
subPath: custom.php
|
||||
readOnly: true
|
||||
{{- if .Values.mysql.enabled }}
|
||||
- name: mysql
|
||||
mountPath: "/opt/secrets/mysql/"
|
||||
{{- end }}
|
||||
- name: env-volume
|
||||
mountPath: /data/.env
|
||||
subPath: env
|
||||
|
@@ -20,12 +20,17 @@ spec:
|
||||
volumes:
|
||||
- name: env-volume
|
||||
emptyDir: {}
|
||||
- name: key
|
||||
secret:
|
||||
secretName: {{ include "librenms.secretName" . }}
|
||||
- name: files
|
||||
configMap:
|
||||
name: {{ .Release.Name }}-files
|
||||
{{- if .Values.mysql.enabled }}
|
||||
- name: mysql
|
||||
secret:
|
||||
secretName: {{ .Release.Name }}-mysql
|
||||
{{- end }}
|
||||
initContainers:
|
||||
- name: init
|
||||
image: busybox:1.28
|
||||
@@ -33,6 +38,8 @@ spec:
|
||||
volumeMounts:
|
||||
- name: env-volume
|
||||
mountPath: /data/env-volume
|
||||
- name: key
|
||||
mountPath: /data/key
|
||||
- name: files
|
||||
mountPath: /data/files
|
||||
containers:
|
||||
@@ -42,11 +49,13 @@ spec:
|
||||
env:
|
||||
- name: SIDECAR_DISPATCHER
|
||||
value: "1"
|
||||
{{- if .Values.mysql.enabled }}
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Release.Name }}-mysql
|
||||
key: mysql-password
|
||||
{{- end }}
|
||||
{{- with .Values.librenms.poller.extraEnvs }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
@@ -61,15 +70,18 @@ spec:
|
||||
- name: env-volume
|
||||
mountPath: /data/.env
|
||||
subPath: env
|
||||
{{- if .Values.mysql.enabled }}
|
||||
- name: mysql
|
||||
mountPath: "/opt/secrets/mysql/"
|
||||
readOnly: true
|
||||
{{- if .Values.librenms.poller.resources }}
|
||||
resources: {{ toYaml .Values.librenms.poller.resources | nindent 10 }}
|
||||
{{- end }}
|
||||
{{- if .Values.mysql.enabled }}
|
||||
readinessProbe:
|
||||
exec:
|
||||
command: ["nc", "-z", "-v", "-w1", "{{ .Release.Name }}-mysql", "3306"]
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 1
|
||||
failureThreshold: 3
|
||||
failureThreshold: 3
|
||||
{{- end }}
|
10
charts/librenms/templates/librenms-secret.yml
Normal file
10
charts/librenms/templates/librenms-secret.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
{{- if not .Values.librenms.existingSecret }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
type: Opaque
|
||||
data:
|
||||
appkey: {{ .Values.librenms.appkey | b64enc | quote }}
|
||||
{{- end }}
|
@@ -27,10 +27,12 @@ spec:
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Release.Name }}-rrdcached-journal
|
||||
{{end}}
|
||||
{{- if .Values.mysql.enabled }}
|
||||
- name: mysql
|
||||
secret:
|
||||
secretName: {{ .Release.Name }}-mysql
|
||||
optional: false # default setting; "mysecret" must exist
|
||||
{{- end }}
|
||||
|
||||
containers:
|
||||
- name: rrdcached
|
||||
@@ -42,9 +44,11 @@ spec:
|
||||
mountPath: /data/db
|
||||
- name: journal
|
||||
mountPath: /data/journal
|
||||
{{- if .Values.mysql.enabled }}
|
||||
- name: mysql
|
||||
mountPath: "/opt/mysql/"
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
{{end}}
|
||||
env:
|
||||
{{- with .Values.librenms.rrdcached.envs }}
|
||||
|
@@ -6,12 +6,16 @@ librenms:
|
||||
# -- repository is the image repository to pull from.
|
||||
repository: librenms/librenms
|
||||
# -- tag is image tag to pull.
|
||||
tag: 24.5.0
|
||||
tag: 25.5.0
|
||||
|
||||
# -- Laravel appkey used by LibreNMS, this should be generated by you and is a
|
||||
# required setting. See the README for more information
|
||||
appkey:
|
||||
|
||||
# -- Existing secret name to use for appkey
|
||||
# Must have the key 'appkey' as above
|
||||
existingSecret: false
|
||||
|
||||
# -- Timezone used by librenms for communication with RRD cached
|
||||
timezone: UTC
|
||||
|
||||
@@ -123,6 +127,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