Skip to content

Use ConfigMaps for redis.conf and aclfile#103

Merged
voltbit merged 1 commit intoPayU:mainfrom
voltbit:redisconfig-to-configmap
Jun 16, 2021
Merged

Use ConfigMaps for redis.conf and aclfile#103
voltbit merged 1 commit intoPayU:mainfrom
voltbit:redisconfig-to-configmap

Conversation

@voltbit
Copy link
Copy Markdown
Contributor

@voltbit voltbit commented May 21, 2021

  • Updated the redis.conf file to version 6.2
  • Moved the redis.conf outside of the code
  • Added ACL example config
  • Created Helm ConfigMaps templates for redis.conf and ACL configuration
  • Disabled rdb dump persistence

differences between the current config and the changes introduced
https://gist.github.com/voltbit/e0dde5992f39d55246665e0390f76937/revisions

reference files:
https://raw.githubusercontent.com/antirez/redis/6.2.0/redis.conf
https://raw.githubusercontent.com/antirez/redis/5.0.0/redis.conf

Part of #100
closes #75

@voltbit
Copy link
Copy Markdown
Contributor Author

voltbit commented Jun 10, 2021

Test Time Data/node
TestRollingUpdate 501.897s 1.9GB

@voltbit voltbit closed this Jun 10, 2021
@voltbit voltbit reopened this Jun 10, 2021
@voltbit voltbit mentioned this pull request Jun 10, 2021
@voltbit voltbit marked this pull request as ready for review June 11, 2021 10:03
@@ -0,0 +1,2051 @@
# Redis configuration file example.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we are now using configmap, can you please mark the changes that was made in the config file in order to allow the usage of the ACL ?

Copy link
Copy Markdown
Contributor Author

@voltbit voltbit Jun 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can see the differences between the current config and the changes introduces in this PR here:
https://gist.github.com/voltbit/e0dde5992f39d55246665e0390f76937/revisions

ignore the 'slaveof' and 'requirepass' differences

the important changes are:

aclfile "/usr/local/etc/redis/acl/users.acl" this is the only ACL setting
save "" this disables RDB dumps

reference files:
https://raw.githubusercontent.com/antirez/redis/6.2.0/redis.conf
https://raw.githubusercontent.com/antirez/redis/5.0.0/redis.conf

- Updated the redis.conf file to version 6.2
- Moved the redis.conf outside of the code
- Added ACL example config
- Created Helm ConfigMaps templates for redis.conf and ACL configuration
- Disabled rdb dump persistence
@voltbit voltbit merged commit 0b986dd into PayU:main Jun 16, 2021
@voltbit voltbit deleted the redisconfig-to-configmap branch June 16, 2021 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Support configuration changes via redis.conf

2 participants