valkey

by HelmForge

Helm chartv2.0.9App 9.2.0Apache-2.0Verified publisher

Valkey Helm chart for standalone, replication, sentinel, and cluster topologies

About this chart

Valkey

Valkey for Kubernetes with explicit support for standalone, replication, sentinel, and cluster topologies.

Install

HTTPS repository

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install valkey helmforge/valkey -f values.yaml

OCI registry

helm install valkey oci://ghcr.io/helmforgedev/helm/valkey -f values.yaml

What this chart covers

  • topology selection with architecture
  • password authentication through generated, inline, existing, or externally reconciled secrets
  • optional External Secrets Operator integration
  • persistence settings by topology
  • internal service DNS customization with clusterDomain
  • dual-stack service fields through service.ipFamilyPolicy and service.ipFamilies
  • optional TLS file wiring for Valkey server configuration
  • optional Valkey exporter sidecar and ServiceMonitor
  • optional NetworkPolicy for ingress traffic control
  • optional PodDisruptionBudget
  • topology-specific Services, StatefulSets, and Valkey Cluster bootstrap Job
  • extraEnv, extraVolumes, extraVolumeMounts, and extraManifests extension points

Supported architectures

ArchitectureContractPrimary resourcesDocument
standaloneOne Valkey pod, lowest operational complexity, no HA contractheadless Service, client Service, StatefulSetdocs/standalone.md
replicationOne fixed primary with read replicas, no automatic promotionheadless Service, primary Service, replica Service, primary and replica StatefulSetsdocs/replication.md
sentinelValkey data nodes plus Sentinel primary discovery and failover for compatible clientsnode StatefulSet, Sentinel Service, Sentinel StatefulSetdocs/sentinel.md
clusterValkey Cluster sharding and HA for Valkey Cluster-compatible clientsheadless Service, client Service, cluster StatefulSet, cluster init Jobdocs/cluster.md

How to choose the architecture

  • Use standalone for development, simple workloads, and systems that do not need Valkey-level HA.
  • Use replication when applications can tolerate a fixed primary endpoint and only need read replicas.
  • Use sentinel when clients can query Sentinel and need automatic primary discovery after failover.
  • Use cluster when clients support Valkey Cluster and data must be sharded across nodes.

Read the topology document before production use:

  • Standalone
  • Replication
  • Sentinel
  • Cluster

Quick start

Minimal standalone deployment with an existing password Secret:

architecture: standalone

auth:
  enabled: true
  existingSecret: valkey-auth
  existingSecretPasswordKey: valkey-password

standalone:
  persistence:
    enabled: true
    size: 8Gi

Install:

helm install valkey helmforge/valkey -f valkey-values.yaml

Authentication

The chart supports four credential patterns:

PatternValuesNotes
Generated passwordauth.enabled=true, empty auth.password, empty auth.existingSecretUseful for quick starts. The generated value is stored in the chart-managed Secret.
Inline passwordauth.passwordAcceptable for local testing. Avoid committing real credentials.
Existing Secretauth.existingSecret and auth.existingSecretPasswordKeyRecommended for production when another process owns the Secret.
ExternalSecretexternalSecrets.enabled=true and auth.existingSecretRecommended when External Secrets Operator reconciles the Secret from an external provider.

When externalSecrets.enabled=true, set auth.existingSecret to the same target Secret name. This avoids drift between a chart-managed Secret and an externally reconciled Secret.

Example:

auth:
  enabled: true
  existingSecret: valkey-auth
  existingSecretPasswordKey: valkey-password

externalSecrets:
  enabled: true
  secretStoreRef:
    name: platform-secrets
    kind: ClusterSecretStore
  data:
    - secretKey: valkey-password
      remoteRef:
        key: valkey/auth
        property: password

Networking

The chart creates a headless Service for stable StatefulSet pod DNS and topology-specific client Services.

ModeClient-facing service
standalone<release>-valkey-client
replication<release>-valkey-primary for writes, <release>-valkey-replicas for reads
sentinel<release>-valkey-sentinel for Sentinel-aware clients
cluster<release>-valkey-client

Cluster domain

Set clusterDomain when the Kubernetes cluster does not use cluster.local:

clusterDomain: corp.internal

The value is used for internal FQDNs rendered into Valkey replication, Sentinel, Valkey Cluster announce hostnames, cluster bootstrap commands, and NOTES.txt.

Dual-stack services

Service dual-stack fields are available through:

service:
  ipFamilyPolicy: PreferDualStack

Leave these values empty to use the cluster defaults. Set service.ipFamilies only when the target cluster advertises every requested family; portable test profiles should prefer ipFamilyPolicy alone.

Persistence

Persistence is configured under each topology:

  • standalone.persistence
  • replication.primary.persistence
  • replication.replica.persistence
  • node.persistence (sentinel mode)
  • sentinel.persistence
  • cluster.persistence

Use persistent volumes for production stateful modes when RDB/AOF must survive pod reschedules. In sentinel mode, node.persistence.enabled defaults to false; peer discovery keeps topology safe without PVCs. Disable persistence only for ephemeral tests and short-lived environments in other modes.

Observability

Enable the Valkey exporter sidecar with:

metrics:
  enabled: true

When Prometheus Operator is installed, enable a ServiceMonitor:

metrics:
  enabled: true
  serviceMonitor:
    enabled: true
    labels:
      prometheus: monitoring

Monitor memory usage, connected clients, command latency, replication lag, Sentinel state, and Valkey Cluster health depending on the selected topology.

Scheduling and availability

For HA-oriented modes, configure:

  • pdb.enabled=true
  • affinity or pod anti-affinity
  • topologySpreadConstraints
  • resource requests and limits
  • a storage class with the required availability profile

The chart exposes scheduling knobs but does not enforce a single cluster layout. Match these values to your node topology and maintenance policy.

Extension points

Use the generic extension values when platform-specific integration is needed:

  • commonLabels
  • podLabels
  • podAnnotations
  • annotations
  • extraEnv
  • extraVolumes
  • extraVolumeMounts
  • extraManifests

extraManifests are rendered with tpl.

Main values

ParameterDescriptionDefault
architectureValkey topology: standalone, replication, sentinel, or clusterstandalone
clusterDomainKubernetes cluster DNS domain used for internal service FQDNscluster.local
image.repositoryValkey image repositorydocker.io/valkey/valkey
image.tagValkey image tag9.1.2
auth.enabledEnable password authenticationtrue
auth.passwordInline Valkey password""
auth.existingSecretExisting Secret containing the Valkey password""
auth.existingSecretPasswordKeySecret key used for the Valkey passwordvalkey-password
tls.enabledEnable Valkey TLS settings. Requires tls.existingSecret.false
tls.insecureSkipVerifyAppend --insecure to chart-rendered valkey-cli TLS clients for CI or self-signed test certificatesfalse
standalone.persistence.enabledEnable persistence for standalone modetrue
replication.replicaCountNumber of replica pods in replication mode2
node.replicaCountNumber of Valkey data nodes in sentinel mode3
node.persistence.enabledEnable PVCs for sentinel data nodesfalse
sentinel.replicaCountNumber of Sentinel pods3
sentinel.masterSetSentinel master set name used by Sentinel clientsmymaster
sentinel.quorumSentinel quorum2
cluster.nodesNumber of Valkey Cluster nodes6
cluster.replicasPerMasterValkey Cluster replicas per master1
cluster.initJob.securityContext.runAsUserCluster init Job container user ID999
service.typeClient Service type where applicableClusterIP
service.ipFamilyPolicyService IP family policy for dual-stack clustersnull
service.ipFamiliesService IP families for dual-stack clusters[]
networkPolicy.enabledEnable NetworkPolicyfalse
metrics.enabledEnable redis_exporter sidecarfalse
metrics.securityContext.runAsUserMetrics exporter container user ID65534
metrics.securityContext.capabilities.dropLinux capabilities dropped from the metrics exporter["ALL"]
metrics.serviceMonitor.enabledCreate ServiceMonitorfalse
tests.enabledRender Helm test connection podtrue
tests.image.repositoryHelm test image repositorydocker.io/valkey/valkey
tests.image.tagHelm test image tag9.1.2
automountServiceAccountTokenMount Kubernetes API service account token into podsfalse
podSecurityContext.seccompProfile.typePod seccomp profileRuntimeDefault
securityContext.capabilities.dropLinux capabilities dropped by default["ALL"]
pdb.enabledCreate PodDisruptionBudget for HA modesfalse
externalSecrets.enabledRender an ExternalSecret for the auth Secretfalse
externalSecrets.secretStoreRef.nameSecretStore or ClusterSecretStore name""
extraManifestsExtra Kubernetes manifests rendered with tpl[]

Security Scan

Security Scan: valkey

FrameworkScore
MITRE + NSA + SOC283.84%

Security posture acceptable.

CI scenarios

The ci/ scenarios validate chart behavior across common configurations:

  • standalone.yaml
  • replication.yaml
  • sentinel.yaml
  • cluster.yaml
  • existing-secret.yaml
  • external-secrets.yaml
  • networkpolicy.yaml
  • metrics.yaml
  • dual-stack.yaml
  • tls-replication.yaml
  • tls-cluster.yaml

Local validation should include:

helm dependency build charts/valkey
helm lint charts/valkey --strict
helm unittest charts/valkey
helm template valkey charts/valkey
helm test valkey -n <namespace>
for f in charts/valkey/ci/*.yaml; do helm template valkey charts/valkey -f "$f" >/dev/null; done

Examples

See examples/:

  • standalone-simple.yaml
  • replication-production.yaml
  • cluster.yaml

Operational notes

  • replication and sentinel are different operational contracts.
  • sentinel requires Sentinel-compatible clients for automatic primary discovery.
  • cluster requires Valkey Cluster-compatible clients.
  • If auth.password is not set and auth.existingSecret is not used, the chart generates a password automatically.
  • If your cluster domain is not cluster.local, set clusterDomain before installing stateful topologies.
  • For production, verify storage, credentials, scheduling, network policy, monitoring, backup strategy, and client compatibility before exposing Valkey to applications.

Official product references

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 v2.0.9 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