spotahome / redis-operator

Redis Operator creates/configures/manages high availability redis with sentinel automatic failover atop Kubernetes.
Apache License 2.0
1.49k stars 357 forks source link

add immutable config items by annotation #571

Open kristobalus opened 1 year ago

kristobalus commented 1 year ago

allows to add immutable configuration settings to redis.conf template as annotation

metadata:
    annotations:
        add-configuration-snippet: |
          server_cpulist 0,2,4
          bio_cpulist 1
          aof_rewrite_cpulist 3
          bgsave_cpulist 3
          io-threads 2
          io-threads-do-reads no
samof76 commented 1 year ago

@kristobalus whats the use case?

kristobalus commented 1 year ago

use case: add immutable configuration to redis.info file like server_cpulist 0,2,4 bio_cpulist 1 aof_rewrite_cpulist 3 bgsave_cpulist 3 io-threads 2 io-threads-do-reads no