mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 05:25:14 +09:00
This patch updates the RedisFailover Helm template to use a newer, secure Redis version (8.2.0). This addresses known security issues in the previous Redis version and ensures safer deployments. ```release-note [redis] Upgrade Redis to a secure version (8.2.0) to fix security vulnerabilities. ``` <!-- Thank you for making a contribution! Here are some tips for you: - Start the PR title with the [label] of Cozystack component: - For system components: [platform], [system], [linstor], [cilium], [kube-ovn], [dashboard], [cluster-api], etc. - For managed apps: [apps], [tenant], [kubernetes], [postgres], [virtual-machine] etc. - For development and maintenance: [tests], [ci], [docs], [maintenance]. - If it's a work in progress, consider creating this PR as a draft. - Don't hesistate to ask for opinion and review in the community chats, even if it's still a draft. - Add the label `backport` if it's a bugfix that needs to be backported to a previous version. --> ## What this PR does ### Release note <!-- Write a release note: - Explain what has changed internally and for users. - Start with the same [label] as in the PR title - Follow the guidelines at https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Redis deployments can now specify the container image via a new configurable value (default: redis:8.2.0), allowing easy override of the Redis image used. * **Schema** * Values schema and resource definition schemas updated to include and validate the new image setting. * **Documentation** * README updated to document the new image parameter. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Managed Redis Service
Redis is a highly versatile and blazing-fast in-memory data store and cache that can significantly boost the performance of your applications. Managed Redis Service offers a hassle-free solution for deploying and managing Redis clusters, ensuring that your data is always available and responsive.
Deployment Details
Service utilizes the Spotahome Redis Operator for efficient management and orchestration of Redis clusters.
Parameters
Common parameters
| Name | Description | Type | Value |
|---|---|---|---|
replicas |
Number of Redis replicas | int |
2 |
resources |
Explicit CPU and memory configuration for each Redis replica. When left empty, the preset defined in resourcesPreset is applied. |
*object |
null |
resources.cpu |
CPU available to each replica | *quantity |
null |
resources.memory |
Memory (RAM) available to each replica | *quantity |
null |
resourcesPreset |
Default sizing preset used when resources is omitted. Allowed values: nano, micro, small, medium, large, xlarge, 2xlarge. |
string |
nano |
size |
Persistent Volume Claim size, available for application data | quantity |
1Gi |
storageClass |
StorageClass used to store the data | string |
"" |
external |
Enable external access from outside the cluster | bool |
false |
Application-specific parameters
| Name | Description | Type | Value |
|---|---|---|---|
authEnabled |
Enable password generation | bool |
true |
Parameter examples and reference
resources and resourcesPreset
resources sets explicit CPU and memory configurations for each replica.
When left empty, the preset defined in resourcesPreset is applied.
resources:
cpu: 4000m
memory: 4Gi
resourcesPreset sets named CPU and memory configurations for each replica.
This setting is ignored if the corresponding resources value is set.
| Preset name | CPU | memory |
|---|---|---|
nano |
250m |
128Mi |
micro |
500m |
256Mi |
small |
1 |
512Mi |
medium |
1 |
1Gi |
large |
2 |
2Gi |
xlarge |
4 |
4Gi |
2xlarge |
8 |
8Gi |