I am looking for some guidance on sentinel setup in kubernetes. Problem i am facing is as follows. Sentinel process to start, a config file(sentinel.conf) has to be passed as command line argument and file must be writeable by the sentinel process.
I have generated the sentinel.conf config file through kubernetes configmap volume mount. but the generated config file can only be read only. kubernetes does not allow it to be writeable.
To circumvent this issue i copied the generated config file to a new config file and made it writeable. Then passed the new file to the sentinel process. This i have done in a start script. can also be done through init container. so far so good.
issues i am facing with this approach is... Every time the container restart the config file copy step will be executed and any changes made in the config file by sentinel process will be lost. will it be an issue if the changes made to the config file are lost after restart of sentinel process ?
If anyone faced this issue and resolved it please guide me. My redis version is 6.2.1