Replies: 3 comments
-
I was jus looking at this today :-). I believe it is to facilitate persistence of the nodes.conf file in case a pod is replaced. (documentation) It keeps record of node UIDs in the cluster, including the "local' node. By using persistant storage for this file, a node can be replaced without the need to reconfigure the cluster. Note that I am not very familiar with Redis, nor did I test my theory extensively. |
Beta Was this translation helpful? Give feedback.
-
I think you're right, too. However, when you set nodeConfVolume (operator v0.15.0 with redis v7.0.12) PVC of the default volume is not created. I just checked the redis image of OT-CONTAINER-KIT, and I think it's because only one volume is mounted (/data) in the container,
Above is image layers in quay.io/opstree/redis:v7.0.12
Above is image layers in quay.io/opstree/redis:v7.2.3 So, if we set
= That means we can't use the default volume at the same time. In redis v7.2.3, nodeConfVolume and defaultVolume are available at the same time. |
Beta Was this translation helpful? Give feedback.
-
In my understanding, Redis can function as a cache system. In this scenario, Redis does not require PVC but it does need a persistent node.conf alone. |
Beta Was this translation helpful? Give feedback.
-
Describe your question
Looking at the 'RedisCluster' configuration, there is an option for nodeConfVolume.
I wonder why you classified using nodeConfVolume separately without using the default volume(reclaimed by volumeClaimTemplate). I've looked up a lot of repository, but I couldn't find any mention of this, so I'm inquiring.
What version of redis-operator are you using?
redis-operator version: v0.15.0
Beta Was this translation helpful? Give feedback.
All reactions