kadet-hub logokadet-hub

Recipes / valkey

Valkey (Redis) on Kubernetes, the BSD-licensed fork in Kapitan

A recipe is packed cargo for one app: inventory classes, ready to load.

Valkey as a single instance with ACL authentication and a persistent volume, rendered by the kadet-hub kubernetes generator 1.14.0 from the Valkey project’s own Helm chart 0.12.0 in its standalone mode.

1.0.3proof level deploys

  • Latest version: 1.0.3, published
  • Source chart: oci://ghcr.io/valkey-io/valkey-helm/valkey:0.12.0@sha256:8d1e895e2cbd8052de6c94155379a8f5cde14ba5867b429e2b290555d5338820
  • Proof level: deploys, compared with the chart by the kadet-hub/recipes CI
  • renders passed in the release run of with check 0.18.0, kind v0.33.0
  • Output capabilities: none
  • Inventory backends: omegaconf
  • Generators: kubernetes 1.14.0 sha256:787129e1eaed6b9bc868fe4c4aec58d40de6a89fc3cc08424a4cb5822b855080
  • Image security: grade D 276 findings, one per advisory and package, in the 1 image of version 1.0.3: CRITICAL 0, HIGH 57, MEDIUM 122, LOW 86, UNKNOWN 11. Scanned 2026-12-03 04:38 UTC. Full report
    The grade rates the upstream images the recipe pins, not the recipe: docker.io/valkey/valkey.

Replaces

This recipe replaces the valkey recipe of kadet-hub/examples, which stood in for Bitnami’s redis chart with a StatefulSet written in kadet-hub. Moving from it changes these objects:

kadet-hub/examples This recipe
StatefulSet valkey with the claim template data, 8Gi Deployment valkey with the PersistentVolumeClaim valkey, 8Gi
--requirepass from Secret valkey, key password ACL user default with all permissions, password from Secret valkey-auth, key default-password
--appendonly yes as an argument appendonly yes in applications.valkey.config
UID and GID 999 UID and GID 1000, as the chart sets them
password ref with the base64 backend in the class password set by the target, with the ref backend of your choice
TCP readiness and liveness probes valkey-cli ping as startup and liveness probe, no readiness probe

The data of the StatefulSet’s claim data-valkey-0 is not moved. Copy it into the new claim before deleting the old one.

What it deploys

  • recipes.valkey (init.yml)
  • recipes.valkey.valkey (valkey.yml): valkey

Required parameters

applications.valkey.password must be set, as a ref with the backend of your choice. Without it the compile stops with Interpolation key 'applications.valkey.password' not found.

Include

A target includes the recipe and its options as classes and can override anything the recipe sets:

classes:
  - recipes.valkey
parameters:
  namespace: valkey
  kapitan:
    vars:
      target: valkey
  applications:
    valkey:
      password: <ref>

Fetching it

The quickstart goes through these steps on a kind cluster with the uptime-kuma recipe, from installing Kapitan to the running app.

A separate fetch inventory pins the recipe by version and digest. This is fetch/targets/recipes.yml for version 1.0.3:

parameters:
  kapitan:
    dependencies:
      - type: oci
        source: ghcr.io/kadet-hub/recipes/valkey:1.0.3@sha256:a50d43cf9080b58040cf84909b0cd7497392709a23f5759e985bd912a9137ce5
        output_path: inventory/classes/recipes/valkey

The first command fetches the recipe into inventory/classes/recipes/valkey, the second the generators and compiles:

kapitan compile --inventory-path fetch --fetch --output-path .
kapitan compile --fetch

The first command exits with status 1 because the fetch target compiles nothing. Kapitan's --fetch checks neither the digest nor the attestation. This verifies the attestation of the recipe:

gh attestation verify \
  oci://ghcr.io/kadet-hub/recipes/valkey@sha256:a50d43cf9080b58040cf84909b0cd7497392709a23f5759e985bd912a9137ce5 \
  --owner kadet-hub \
  --cert-identity https://github.com/kadet-hub/registry/.github/workflows/release.yml@refs/heads/main

The attested index must also list each digest under its recipe with the pinned version, and not as yanked. Verifying by hand shows how to read it.

Settings

Chart value Inventory
image.tag components.valkey.image, tag and digest
auth.aclUsers.default.password applications.valkey.password
valkeyConfig applications.valkey.config
valkeyLogLevel components.valkey.env.VALKEY_LOG_LEVEL
dataStorage.requestedSize components.valkey.persistent_volume_claims.valkey.storage
dataStorage.className components.valkey.persistent_volume_claims.valkey.storage_class
resources components.valkey.resources
service.type components.valkey.service.type
podAnnotations components.valkey.pod_annotations
nodeSelector, tolerations, affinity components.valkey.node_selector, components.valkey.tolerations, components.valkey.affinity

The pod annotations checksum/initconfig and checksum/config are the chart’s hashes for the values in tests/values.yaml. They do not change with applications.valkey.config, so after changing it restart the pod with kubectl rollout restart deployment/valkey.

The init script in the ConfigMap valkey-init-scripts is the chart’s, rendered for ACL authentication of the user default without TLS and replicas. Chart values that change it, such as tls, replica or more auth.aclUsers, are not settings of this recipe. The script is BSD-3-Clause, and its license is in valkey.yml.LICENSE.

Any list set in the target is appended to the recipe’s list. To replace one, set the key to ~ in a class included after the recipe and the new list in the target.

Left out

The chart’s test pod runs only inside helm test. tests/smoke checks the same on the installed recipe. It is not rendered: Pod/valkey-test-auth-generated.

Proof

check valkey --level deploys with tests/values.yaml and tests/target.yml, on kind for each Kubernetes minor CI tests. The seven objects differ only in their selector scheme: the Deployment and the Service select on name, the chart on app.kubernetes.io/name and instance. Both select the same pods. The chart binds no role.

tests/smoke sends PING, SET and GET as the user default with the password from the Secret, and expects PING without a password to be refused.

Used in stacks

Versions

  • 1.0.3, : sha256:a50d43cf9080b58040cf84909b0cd7497392709a23f5759e985bd912a9137ce5
  • 1.0.2, : sha256:263dfc2e41097c7c6bd016baadcc8384e79afd10910506a892e9994ee7ece918
  • 1.0.1, : sha256:9ba856132f2ed05ab6748d6f23f0ca7df86947593c1dd9fa4b7af21ae3f61e24
  • 1.0.0, : sha256:ae790988ac301ea60ae3fd0e9a2aaad8f2386241f3ef27f0a40ffa853e4fd687

The recipe's files are in kadet-hub/recipes. All recipes