valkey

by CloudPirates

Helm chartv0.26.1App 9.1.0Apache-2.0Verified publisher

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

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]

Image configuration

ParameterDescriptionDefault
image.registryValkey image registrydocker.io
image.repositoryValkey image repositoryvalkey/valkey
image.tagValkey image tag (immutable tags are recommended)"9.1.0-alpine3.23@sha256:a35428eba9043cc0b79dbe54100f0c92784f2de00ad09b01182bfb1c5c83d1bd"
image.pullPolicyValkey image pull policyIfNotPresent

Common configuration

ParameterDescriptionDefault
architectureValkey architecture. Allowed values: standalone, replicationstandalone
replicaCountNumber of Valkey replicas to deploy (only when architecture=replication)3
revisionHistoryLimitNumber of revisions to keep in history for rollback (set to 0 for unlimited)10
ipFamilyIP family to use for replica and sentinel announce IPs. Allowed values: auto, ipv4, ipv6auto
clusterDomainKubernetes cluster domaincluster.local
nameOverrideString to partially override valkey.fullname""
fullnameOverrideString to fully override valkey.fullname""
namespaceOverrideString to override the namespace for all resources""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}

Pod annotations and labels

ParameterDescriptionDefault
podAnnotationsMap of annotations to add to the pods{}
podLabelsMap of labels to add to the pods{}

Security Context

ParameterDescriptionDefault
podSecurityContext.fsGroupGroup ID for the volumes of the pod1000
containerSecurityContext.allowPrivilegeEscalationEnable container privilege escalationfalse
containerSecurityContext.runAsNonRootConfigure the container to run as a non-root usertrue
containerSecurityContext.runAsUserUser ID for the Valkey container999
containerSecurityContext.runAsGroupGroup ID for the Valkey container1000
containerSecurityContext.readOnlyRootFilesystemMount container root filesystem as read-onlytrue
containerSecurityContext.capabilities.dropLinux capabilities to be dropped["ALL"]
priorityClassNamePriority class for the valkey instance""

Valkey Authentication

ParameterDescriptionDefault
auth.enabledEnable password authenticationtrue
auth.passwordValkey password""
auth.existingSecretThe name of an existing secret with Valkey credentials""
auth.existingSecretPasswordKeyPassword key to be retrieved from existing secret"password"

Valkey Configuration

ParameterDescriptionDefault
config.mountPathRedis configuration mount path/etc/valkey
config.maxMemoryMaximum memory usage for Valkey (e.g., 256mb, 1gb)""
config.maxMemoryPolicyMemory eviction policy when maxmemory is reached"allkeys-lru"
config.saveValkey save configuration (e.g., "900 1 300 10 60 10000")"900 1 300 10 60 10000"
config.extraConfigAdditional Valkey configuration parameters[]
config.existingConfigmapName 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).

ParameterDescriptionDefault
externalReplica.enabledEnable replication from an external Redis/Valkey serverfalse
externalReplica.hostHostname or IP address of the external Redis/Valkey master""
externalReplica.portPort of the external Redis/Valkey master server6379
externalReplica.auth.enabledEnable authentication to the external master serverfalse
externalReplica.auth.existingSecretName of existing secret containing the external master password""
externalReplica.auth.existingSecretPasswordKeyKey in the existing secret that contains the password"password"

Service configuration

ParameterDescriptionDefault
service.typeValkey service typeClusterIP
service.portValkey service port6379
service.targetPortValkey container port6379
service.annotationsService annotations{}

ServiceAccount configuration

ParameterDescriptionDefault
serviceAccount.createEnable creation of a Service Accountfalse
serviceAccount.nameName of the Service Account""
serviceAccount.annotationsAnnotations to add to the Service Account{}
serviceAccount.automountTokenEnable automounting of the Service Account tokenfalse

Ingress configuration

ParameterDescriptionDefault
ingress.enabledEnable ingress record generation for Valkeyfalse
ingress.classNameIngressClass that will be used to implement the Ingress""
ingress.annotationsAdditional annotations for the Ingress resource{}
ingress.hosts[0].hostHostname for Valkey ingressvalkey.local
ingress.hosts[0].paths[0].pathPath for Valkey ingress/
ingress.hosts[0].paths[0].pathTypePath type for Valkey ingressPrefix
ingress.tlsTLS configuration for Valkey ingress[]

Resources

ParameterDescriptionDefault
resourcesThe resources to allocate for the container{}

Pod Disruption Budget

ParameterDescriptionDefault
pdb.enabledEnable Pod Disruption Budgetfalse
pdb.minAvailableMinimum number/percentage of pods that should remain scheduled1
pdb.maxUnavailableMaximum number/percentage of pods that may be made unavailable""

Persistence

ParameterDescriptionDefault
persistence.enabledEnable persistence using Persistent Volume Claimstrue
persistence.storageClassPersistent Volume storage class""
persistence.annotationsPersistent Volume Claim annotations{}
persistence.labelsLabels for persistence volume claims{}
persistence.sizePersistent Volume size8Gi
persistence.accessModesPersistent Volume access modes["ReadWriteOnce"]
persistence.existingClaimThe name of an existing PVC to use for persistence""

Persistent Volume Claim Retention Policy

ParameterDescriptionDefault

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartvalkey is pinned at v0.26.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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