valkey
by CloudPirates
High performance in-memory data structure store, fork of Redis. Valkey is an open-source, high-performance key/value datastore that supports a variety of workloads such as caching, message queues, and can act as a primary database.
About this chart
Valkey
High performance in-memory data structure store, fork of Redis. Valkey is an open-source, high-performance key/value datastore that supports a variety of workloads such as caching, message queues, and can act as a primary database.
Prerequisites
- Kubernetes 1.24+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure (if persistence is enabled)
Installing the Chart
To install the chart with the release name my-valkey:
helm install my-valkey oci://registry-1.docker.io/cloudpirates/valkey
To install with custom values:
helm install my-valkey oci://registry-1.docker.io/cloudpirates/valkey -f my-values.yaml
Or install directly from the local chart:
helm install my-valkey ./charts/valkey
The command deploys Valkey on the Kubernetes cluster in the default configuration. The Configuration section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete the my-valkey deployment:
helm uninstall my-valkey
The command removes all the Kubernetes components associated with the chart and deletes the release.
Security & Signature Verification
This Helm chart is cryptographically signed with Cosign to ensure authenticity and prevent tampering.
Public Key:
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE5U+rM2d3hDjgP5T3cLShuuQIU9vR
Z4/G+Nug6q5vRa+C3qUA1wXjbaJFAfcIrv5VjmYAYOj13shnPpp3Zh4fnQ==
-----END PUBLIC KEY-----
To verify the helm chart before installation, copy the public key to the file cosign.pub and run cosign:
cosign verify --key cosign.pub registry-1.docker.io/cloudpirates/valkey:<version>
Configuration
The following table lists the configurable parameters of the Valkey chart and their default values.
Global parameters
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
Image configuration
| Parameter | Description | Default |
|---|---|---|
image.registry | Valkey image registry | docker.io |
image.repository | Valkey image repository | valkey/valkey |
image.tag | Valkey image tag (immutable tags are recommended) | "9.1.0-alpine3.23@sha256:a35428eba9043cc0b79dbe54100f0c92784f2de00ad09b01182bfb1c5c83d1bd" |
image.pullPolicy | Valkey image pull policy | IfNotPresent |
Common configuration
| Parameter | Description | Default |
|---|---|---|
architecture | Valkey architecture. Allowed values: standalone, replication | standalone |
replicaCount | Number of Valkey replicas to deploy (only when architecture=replication) | 3 |
revisionHistoryLimit | Number of revisions to keep in history for rollback (set to 0 for unlimited) | 10 |
ipFamily | IP family to use for replica and sentinel announce IPs. Allowed values: auto, ipv4, ipv6 | auto |
clusterDomain | Kubernetes cluster domain | cluster.local |
nameOverride | String to partially override valkey.fullname | "" |
fullnameOverride | String to fully override valkey.fullname | "" |
namespaceOverride | String to override the namespace for all resources | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
Pod annotations and labels
| Parameter | Description | Default |
|---|---|---|
podAnnotations | Map of annotations to add to the pods | {} |
podLabels | Map of labels to add to the pods | {} |
Security Context
| Parameter | Description | Default |
|---|---|---|
podSecurityContext.fsGroup | Group ID for the volumes of the pod | 1000 |
containerSecurityContext.allowPrivilegeEscalation | Enable container privilege escalation | false |
containerSecurityContext.runAsNonRoot | Configure the container to run as a non-root user | true |
containerSecurityContext.runAsUser | User ID for the Valkey container | 999 |
containerSecurityContext.runAsGroup | Group ID for the Valkey container | 1000 |
containerSecurityContext.readOnlyRootFilesystem | Mount container root filesystem as read-only | true |
containerSecurityContext.capabilities.drop | Linux capabilities to be dropped | ["ALL"] |
priorityClassName | Priority class for the valkey instance | "" |
Valkey Authentication
| Parameter | Description | Default |
|---|---|---|
auth.enabled | Enable password authentication | true |
auth.password | Valkey password | "" |
auth.existingSecret | The name of an existing secret with Valkey credentials | "" |
auth.existingSecretPasswordKey | Password key to be retrieved from existing secret | "password" |
Valkey Configuration
| Parameter | Description | Default |
|---|---|---|
config.mountPath | Redis configuration mount path | /etc/valkey |
config.maxMemory | Maximum memory usage for Valkey (e.g., 256mb, 1gb) | "" |
config.maxMemoryPolicy | Memory eviction policy when maxmemory is reached | "allkeys-lru" |
config.save | Valkey save configuration (e.g., "900 1 300 10 60 10000") | "900 1 300 10 60 10000" |
config.extraConfig | Additional Valkey configuration parameters | [] |
config.existingConfigmap | Name of existing ConfigMap with Valkey configuration | "" |
External Replica Configuration
Configure Valkey as a replica of an external Redis/Valkey server. This is useful for migration scenarios or creating read replicas from external sources.
Important: External replica mode is mutually exclusive with Sentinel mode (sentinel.enabled must be false).
| Parameter | Description | Default |
|---|---|---|
externalReplica.enabled | Enable replication from an external Redis/Valkey server | false |
externalReplica.host | Hostname or IP address of the external Redis/Valkey master | "" |
externalReplica.port | Port of the external Redis/Valkey master server | 6379 |
externalReplica.auth.enabled | Enable authentication to the external master server | false |
externalReplica.auth.existingSecret | Name of existing secret containing the external master password | "" |
externalReplica.auth.existingSecretPasswordKey | Key in the existing secret that contains the password | "password" |
Service configuration
| Parameter | Description | Default |
|---|---|---|
service.type | Valkey service type | ClusterIP |
service.port | Valkey service port | 6379 |
service.targetPort | Valkey container port | 6379 |
service.annotations | Service annotations | {} |
ServiceAccount configuration
| Parameter | Description | Default |
|---|---|---|
serviceAccount.create | Enable creation of a Service Account | false |
serviceAccount.name | Name of the Service Account | "" |
serviceAccount.annotations | Annotations to add to the Service Account | {} |
serviceAccount.automountToken | Enable automounting of the Service Account token | false |
Ingress configuration
| Parameter | Description | Default |
|---|---|---|
ingress.enabled | Enable ingress record generation for Valkey | false |
ingress.className | IngressClass that will be used to implement the Ingress | "" |
ingress.annotations | Additional annotations for the Ingress resource | {} |
ingress.hosts[0].host | Hostname for Valkey ingress | valkey.local |
ingress.hosts[0].paths[0].path | Path for Valkey ingress | / |
ingress.hosts[0].paths[0].pathType | Path type for Valkey ingress | Prefix |
ingress.tls | TLS configuration for Valkey ingress | [] |
Resources
| Parameter | Description | Default |
|---|---|---|
resources | The resources to allocate for the container | {} |
Pod Disruption Budget
| Parameter | Description | Default |
|---|---|---|
pdb.enabled | Enable Pod Disruption Budget | false |
pdb.minAvailable | Minimum number/percentage of pods that should remain scheduled | 1 |
pdb.maxUnavailable | Maximum number/percentage of pods that may be made unavailable | "" |
Persistence
| Parameter | Description | Default |
|---|---|---|
persistence.enabled | Enable persistence using Persistent Volume Claims | true |
persistence.storageClass | Persistent Volume storage class | "" |
persistence.annotations | Persistent Volume Claim annotations | {} |
persistence.labels | Labels for persistence volume claims | {} |
persistence.size | Persistent Volume size | 8Gi |
persistence.accessModes | Persistent Volume access modes | ["ReadWriteOnce"] |
persistence.existingClaim | The name of an existing PVC to use for persistence | "" |
Persistent Volume Claim Retention Policy
| Parameter | Description | Default |
|---|
Deploy valkey with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has valkey on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartvalkey is pinned at v0.26.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply