Reference / Package catalog
valkey
These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.
Valkey, a Redis-compatible data store: one primary, or a primary with replicas and Sentinel failover
This page is generated from kix/packages/stable/valkey.
| Stability | Stable |
package value | packages.valkey |
| Default software version | 9.1.3 |
| Default aliases | redis |
How-to guides
Section titled “How-to guides”Dependencies
Section titled “Dependencies”Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set deps.<name> in your cluster definition. See Declaring dependencies for how required and optional dependencies work.
| Dependency | Requirement |
|---|---|
valkeyPassword | Required |
prometheus | Optional |
storageClasses | Optional |
Options
Section titled “Options”Image of valkey-server and the Sentinel sidecar.
-
Type:
submodule -
Default:
1{2digest = "sha256:3add1a336a920ea54770a001ab6feb3da5fceea96a40373a3a2cd469b815f0b7";3pullPolicy = "IfNotPresent";4repository = "docker.io/valkey/valkey";5tag = "9.1.3";6}
image.digest
Section titled “image.digest”Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.
- Type:
null or string - Default: the package’s digest while
tagis the package’s tag, otherwise null
image.note
Section titled “image.note”Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.
- Type:
null or string - Default:
null
image.promotedBy
Section titled “image.promotedBy”Who resolved this pin, for the record. Null when unknown.
- Type:
null or string - Default:
null
image.pullPolicy
Section titled “image.pullPolicy”imagePullPolicy for containers using this image. Null leaves it to Kubernetes.
- Type:
null or string - Default:
"IfNotPresent"
image.repository
Section titled “image.repository”Image repository, registry host included.
- Type:
string - Default:
"docker.io/valkey/valkey"
image.resolvedAt
Section titled “image.resolvedAt”When this pin was resolved, RFC 3339. Null when unknown.
- Type:
null or string - Default:
null
image.sourceRev
Section titled “image.sourceRev”Revision of the source the image was built from, when Kix built it. Null for upstream images.
- Type:
null or string - Default:
null
image.tag
Section titled “image.tag”Image tag. What was asked for.
- Type:
string - Default:
"9.1.3"
metrics.enabled
Section titled “metrics.enabled”Run the redis_exporter sidecar, a metrics Service, a ServiceMonitor, and alerts when the cluster has a prometheus provider. The sidecar is part of the pod template, so adding the first prometheus provider, or turning this off, restarts every pod; a standalone instance is down while its pod restarts.
- Type:
boolean - Default:
true
metrics.extraArgs
Section titled “metrics.extraArgs”Flags appended to the exporter’s command line. The package owns the flags for the address, credentials, listen address, and metrics path.
-
Type:
list of string -
Default:
[ ] -
Example:
1[2"--include-system-metrics"3]
metrics.image
Section titled “metrics.image”Image of the metrics exporter sidecar.
-
Type:
submodule -
Default:
1{2digest = "sha256:6ca518a72f30f7f576ef92963de1b91d3c3f5fd3aeac949f878bfda183587820";3pullPolicy = "IfNotPresent";4repository = "docker.io/oliver006/redis_exporter";5tag = "v1.93.0";6}
metrics.image.digest
Section titled “metrics.image.digest”Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.
- Type:
null or string - Default: the package’s digest while
tagis the package’s tag, otherwise null
metrics.image.note
Section titled “metrics.image.note”Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.
- Type:
null or string - Default:
null
metrics.image.promotedBy
Section titled “metrics.image.promotedBy”Who resolved this pin, for the record. Null when unknown.
- Type:
null or string - Default:
null
metrics.image.pullPolicy
Section titled “metrics.image.pullPolicy”imagePullPolicy for containers using this image. Null leaves it to Kubernetes.
- Type:
null or string - Default:
"IfNotPresent"
metrics.image.repository
Section titled “metrics.image.repository”Image repository, registry host included.
- Type:
string - Default:
"docker.io/oliver006/redis_exporter"
metrics.image.resolvedAt
Section titled “metrics.image.resolvedAt”When this pin was resolved, RFC 3339. Null when unknown.
- Type:
null or string - Default:
null
metrics.image.sourceRev
Section titled “metrics.image.sourceRev”Revision of the source the image was built from, when Kix built it. Null for upstream images.
- Type:
null or string - Default:
null
metrics.image.tag
Section titled “metrics.image.tag”Image tag. What was asked for.
- Type:
string - Default:
"v1.93.0"
metrics.interval
Section titled “metrics.interval”Scrape interval (e.g. ”30s”). Null = use Prometheus default.
- Type:
null or string - Default:
null
metrics.resources
Section titled “metrics.resources”Container resource requests and limits. Each field keeps its default until set, and null removes a default.
-
Type:
submodule -
Default:
1{2limits = {3cpu = "1";4memory = "128Mi";5};6requests = {7cpu = "50m";8memory = "64Mi";9};10}
metrics.resources.claims
Section titled “metrics.resources.claims”Dynamic resource claims the container uses. Null leaves it unset.
- Type:
null or (list of (submodule)) - Default:
null
metrics.resources.claims.*.name
Section titled “metrics.resources.claims.*.name”Name of an entry in the pod’s resourceClaims.
- Type:
string
metrics.resources.claims.*.request
Section titled “metrics.resources.claims.*.request”Request within the claim to use. Null uses the whole claim.
- Type:
null or string - Default:
null
metrics.resources.limits
Section titled “metrics.resources.limits”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
metrics.resources.limits.cpu
Section titled “metrics.resources.limits.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"1"
metrics.resources.limits.ephemeral-storage
Section titled “metrics.resources.limits.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
metrics.resources.limits.memory
Section titled “metrics.resources.limits.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"128Mi"
metrics.resources.requests
Section titled “metrics.resources.requests”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
metrics.resources.requests.cpu
Section titled “metrics.resources.requests.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"50m"
metrics.resources.requests.ephemeral-storage
Section titled “metrics.resources.requests.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
metrics.resources.requests.memory
Section titled “metrics.resources.requests.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"64Mi"
replicas
Section titled “replicas”Pods of the StatefulSet. Standalone Valkey runs one; with Sentinel, one is the primary and the others replicate it. After a scale-down, Sentinel lists the removed replicas until SENTINEL RESET primary runs on each Sentinel.
- Type:
positive integer, meaning >0 - Default: 3 with Sentinel, else 1
resources
Section titled “resources”Resources of the valkey container. limits.memory also sets the built-in maxmemory.
-
Type:
submodule -
Default:
1{2limits = {3cpu = "1";4memory = "512Mi";5};6requests = {7cpu = "250m";8memory = "512Mi";9};10}
resources.claims
Section titled “resources.claims”Dynamic resource claims the container uses. Null leaves it unset.
- Type:
null or (list of (submodule)) - Default:
null
resources.claims.*.name
Section titled “resources.claims.*.name”Name of an entry in the pod’s resourceClaims.
- Type:
string
resources.claims.*.request
Section titled “resources.claims.*.request”Request within the claim to use. Null uses the whole claim.
- Type:
null or string - Default:
null
resources.limits
Section titled “resources.limits”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
resources.limits.cpu
Section titled “resources.limits.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"1"
resources.limits.ephemeral-storage
Section titled “resources.limits.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
resources.limits.memory
Section titled “resources.limits.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"512Mi"
resources.requests
Section titled “resources.requests”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
resources.requests.cpu
Section titled “resources.requests.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"250m"
resources.requests.ephemeral-storage
Section titled “resources.requests.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
resources.requests.memory
Section titled “resources.requests.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"512Mi"
sentinel.enabled
Section titled “sentinel.enabled”Run a Sentinel sidecar in every pod, so a replica takes over when the primary is lost.
- Type:
boolean - Default: true from availability level
nodeup
sentinel.primarySettings
Section titled “sentinel.primarySettings”Sentinel settings for the monitored primary, rendered as
sentinel <key> primary <value>. They apply over the built-ins
down-after-milliseconds = 3000, failover-timeout = 10000, and
parallel-syncs = 1; null drops one. Keys are lower case, and
values have no line breaks.
-
Type:
attribute set of (null or signed integer or string without line breaks) -
Default:
{ } -
Example:
1{2down-after-milliseconds = 5000;3}
sentinel.quorum
Section titled “sentinel.quorum”Sentinels that must agree the primary is down before a failover starts (the quorum of sentinel monitor).
- Type:
positive integer, meaning >0 - Default:
2
sentinel.resources
Section titled “sentinel.resources”Container resource requests and limits. Each field keeps its default until set, and null removes a default.
-
Type:
submodule -
Default:
1{2limits = {3cpu = "250m";4memory = "128Mi";5};6requests = {7cpu = "50m";8memory = "64Mi";9};10}
sentinel.resources.claims
Section titled “sentinel.resources.claims”Dynamic resource claims the container uses. Null leaves it unset.
- Type:
null or (list of (submodule)) - Default:
null
sentinel.resources.claims.*.name
Section titled “sentinel.resources.claims.*.name”Name of an entry in the pod’s resourceClaims.
- Type:
string
sentinel.resources.claims.*.request
Section titled “sentinel.resources.claims.*.request”Request within the claim to use. Null uses the whole claim.
- Type:
null or string - Default:
null
sentinel.resources.limits
Section titled “sentinel.resources.limits”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
sentinel.resources.limits.cpu
Section titled “sentinel.resources.limits.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"250m"
sentinel.resources.limits.ephemeral-storage
Section titled “sentinel.resources.limits.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
sentinel.resources.limits.memory
Section titled “sentinel.resources.limits.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"128Mi"
sentinel.resources.requests
Section titled “sentinel.resources.requests”Resource quantities by name.
- Type:
open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
{ }
sentinel.resources.requests.cpu
Section titled “sentinel.resources.requests.cpu”The cpu quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"50m"
sentinel.resources.requests.ephemeral-storage
Section titled “sentinel.resources.requests.ephemeral-storage”The ephemeral-storage quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
null
sentinel.resources.requests.memory
Section titled “sentinel.resources.requests.memory”The memory quantity. Null leaves it unset.
- Type:
null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"64Mi"
settings
Section titled “settings”valkey.conf directives over the built-ins appendonly = "yes" and
maxmemory, which is 70% of resources.limits.memory when that is
set. A bool renders yes or no, a list one line per element, and null
drops a built-in. Keys are lower case, and values have no line
breaks. The directives the package owns (port, bind, the
password and replication user, replication, dir, include,
user, aclfile, daemonize, rename-command) are refused.
-
Type:
attribute set of (null or string without line breaks or signed integer or boolean or list of string without line breaks) -
Default:
{ } -
Example:
1{2maxmemory-policy = "allkeys-lru";3save = [4"900 1"5"300 10"6];7}
storage.size
Section titled “storage.size”Volume requested for each pod, holding the AOF and RDB files.
- Type:
Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei) - Default:
"8Gi"
storage.storageClassName
Section titled “storage.storageClassName”StorageClass of the volumes. Null takes the class from the storageClasses dependency, or with none the cluster default.
- Type:
null or string - Default:
null