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 a chmod/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 to chmod 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.
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: