Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Redis configurations #293

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

ag-adampike
Copy link
Member

@ag-adampike ag-adampike commented Mar 4, 2024

This PR updates the base configuration for the Redis instance included as part of our example SCIM Bridge deployments.

Container configuration varies by platform, but the strategy is similar for each:

  • use command-line arguments for configuring Redis as an in-memory cache with snapshots disabled (this data is not expected or required to persist)
  • remove any environment variable configuration that currently being used for this purpose
  • remove any volumes, configs, and container mounts for Redis configuration files currently being used for this purpose
  • remove any source files used to generate this configuration
  • update all relevant reference documentation

The included changes do not significantly change functionality of the deployment examples, but reduce complexity, reduce lines of code, and make our examples more generic for customers that choose to use them as a base for their own customizations.

For review, existing deployment and update instructions should work as expected. Redis logs should not warn that configuration is missing, but should include "Configuration loaded" within the first few log lines after the container starts.

- remove init containers
- remove volumes
- refactor redis.conf as command arguments

Signed-off-by: Adam Pike <adam.pike@1password.com>
- remove redundant Redis env var
- override default Redis container command to configure Redis as cache

Signed-off-by: Adam Pike <adam.pike@1password.com>
- remove redundant OP_REDIS_URL env var
- add command-line args to configure Redis as cache
- remove REDIS_ARGS env var

Signed-off-by: Adam Pike <adam.pike@1password.com>
- override Redis container arguments to configure Redis as cache
- remove redundant volumes, mounts from Redis Pod
- remove redundant ConfigMap resource
- update related docs references

Signed-off-by: Adam Pike <adam.pike@1password.com>
- use library Redis
- override container command to configure Redis as cache
- remove redundant env vars

Signed-off-by: Adam Pike <adam.pike@1password.com>
- refactor Redis to use service command to configure Redis as cache
- remove redundant Docker config for Redis
- remove redundant redis.conf source file for config
- update relevant docs references

Signed-off-by: Adam Pike <adam.pike@1password.com>
Signed-off-by: Adam Pike <adam.pike@1password.com>
@ag-adampike ag-adampike requested a review from a team March 4, 2024 22:56
@ag-adampike ag-adampike self-assigned this Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant