我已经使用helm chart完成了bitnami redis-cluster部署。我遵循下面的链接进行redis-cluster部署-
https://github.com/bitnami/charts/tree/master/bitnami/redis-cluster
我想启用redis日志,但不确定如何启用,因为当前的bitnami redis映像配置文件位于/opt/bitnami/redis/etc/redis.conf,其参数值logfile:"“为空字符串。
有没有办法在每个pod上启用redis服务器日志??
发布于 2020-12-24 18:01:50
您可以使用helm --set标志覆盖redis.conf文件中的默认值。
// Add your custom configurations
$ export CUSTOM_CONFIG="logfile /data/logs/file.log"
// Apply those while installing
$ helm install redis bitnami/redis-cluster --set redis.configmap=$CUSTOM_CONFIG您可以从pod内部查看:
$ kubectl exec -it redis-redis-cluster-0 -- cat /opt/bitnami/redis/etc/redis.conf
.
.
.
logfile /data/logs/file.loghttps://stackoverflow.com/questions/65434330
复制相似问题