[LibreNMS] Updated chart and dependencies to work with Librenms latest (24.3.0) #74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR modifies two things (aside from the versions in the chart.yaml)
Changing the disabled commands on Redis
In the default values, I changed the disabled commands list in redis since Librenms needs FLUSHDB on startup and it is in the default bitnami list.
Mounting the config.php file using an init-container
The handling of files in
/opt/librenms/config.d
seemingly changed between v22 and v24, there is a purge on startup and the config files are autogenerated from/data/config/*.php
. There is also achmod
/chown
that gets run on/data/config
.This means that the configmap for
config.php
cannot be placed in/opt/librenms/config.d
and it also cannot be placed inside/data/config
since a configmap mount is readonly.In the statefulset template, I added an init-container to mount the configmap into
/tmp/config
and then perform a copy to/data/config
since the librenms startup scripts needs all files to be read-writable in order tochmod
them.I removed the config from the app container since we move it into /data/config/ on startup and from there the templater picks it up and generates the config that gets put into
/opt/librenms/config.d
.Same thing for the
syslog
since it also uses the librenms config and image.So all this to say, it runs now: