valkey-operator
by alekc
Kubernetes operator that manages Valkey (Redis-compatible) clusters as a typed CRD, covering provisioning, scaling, and configuration
About this chart
valkey-operator
Kubernetes operator that manages Valkey (Redis-compatible) clusters as a typed CRD, covering provisioning, scaling, and configuration
The Valkey Operator manages Valkey custom
resources: create one, and the operator provisions, scales, and reconfigures the underlying
StatefulSet, Services, and Secrets for you.
Quick start
helm repo add alekc https://charts.alekc.dev
helm repo update
helm install valkey-operator alekc/valkey-operator
Or directly from the OCI registry, no helm repo add needed:
helm install valkey-operator oci://charts.alekc.dev/valkey-operator --version 0.3.0
Verifying the signature
curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/valkey-operator --version 0.3.0 --verify --keyring pubring.gpg
Installing the operator alone does nothing until a Valkey custom resource exists. Create
one directly with kubectl (this chart doesn't offer a shortcut for it, unlike an
app-template chart's cluster.create):
apiVersion: hyperspike.io/v1
kind: Valkey
metadata:
name: my-valkey
spec:
nodes: 3
replicas: 1
Maintainers
| Name | Url | |
|---|---|---|
| alekc | [email protected] |
Source Code
- https://github.com/hyperspike/valkey-operator
- https://gitlab.com/alexander-chernov/helm/valkey-operator
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalManifests | object | {} | List of additional manifests to include |
| affinity | object | {} | Affinity rules for pod scheduling |
| autoscaling | object | {"enabled":false,"maxReplicas":10,"minReplicas":1,"targetCPUUtilizationPercentage":80} | Autoscaling configuration |
| autoscaling.enabled | bool | false | Enable or disable autoscaling |
| autoscaling.maxReplicas | int | 10 | Maximum number of replicas |
| autoscaling.minReplicas | int | 1 | Minimum number of replicas |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | Target CPU utilization percentage |
| commonAnnotations | object | {} | Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated annotations field. |
| commonLabels | object | {} | Common labels to be added to all resources |
| config | object | {"data":{"exporterImage":"ghcr.io/hyperspike/valkey-sidecar:v0.0.61","nodes":"3","valkeyImage":"ghcr.io/hyperspike/valkey:8.1.4"},"enabled":true} | Application-specific configuration |
| config.data | object | {"exporterImage":"ghcr.io/hyperspike/valkey-sidecar:v0.0.61","nodes":"3","valkeyImage":"ghcr.io/hyperspike/valkey:8.1.4"} | Key-value pairs for the configuration |
| config.enabled | bool | true | Enable or disable the configuration map |
| deployment | object | {"additionalMounts":[],"additionalVolumes":[],"annotations":{},"revisionHistoryLimit":2,"strategy":{"type":"RollingUpdate"}} | Deployment configuration |
| deployment.additionalMounts | list | [] | Additional volume mounts |
| deployment.additionalVolumes | list | [] | Additional volumes to mount |
| deployment.annotations | object | {} | Annotations to add to the deployment |
| deployment.revisionHistoryLimit | int | 2 | Number of old ReplicaSets to retain for rollback |
| deployment.strategy | object | {"type":"RollingUpdate"} | Deployment strategy (e.g., RollingUpdate, Recreate) |
| env | object | {"full":[{"name":"APP_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.labels['app.kubernetes.io/name']"}}},{"name":"INSTANCE_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.labels['app.kubernetes.io/instance']"}}}],"simple":{}} | Environment variables for the container |
| env.full | list | [{"name":"APP_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.labels['app.kubernetes.io/name']"}}},{"name":"INSTANCE_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.labels['app.kubernetes.io/instance']"}}}] | Full environment variable definitions |
| env.simple | object | {} | Simple key-value environment variables |
| fullnameOverride | string | "" | Override the full name of the chart |
| image | object | {"pullPolicy":"IfNotPresent","repository":"ghcr.io/hyperspike/valkey-operator","tag":""} | Container image configuration |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy (e.g., Always, IfNotPresent) |
| image.repository | string | "ghcr.io/hyperspike/valkey-operator" | Image repository (e.g., nginx, redis) |
| image.tag | string | "" | Image tag (overrides the chart appVersion if specified) |
| imagePullSecrets | list | [] | Secrets for pulling images from private registries |
| livenessProbe | object | {"config":{"httpGet":{"path":"/healthz","port":8081}},"enabled":true} | Liveness probe configuration |
| livenessProbe.config | object | {"httpGet":{"path":"/healthz","port":8081}} | Liveness probe settings |
| livenessProbe.enabled | bool | true | Enable or disable the liveness probe |
| nameOverride | string | "" | Override the name of the chart |
| networkPolicy.annotations | object | {} | Annotations to add to the NetworkPolicy |
| networkPolicy.enabled | bool | false | Render a NetworkPolicy restricting ingress to the operator's own health-probe port and egress to DNS plus a broad allowance. The operator needs to reach the Kubernetes API server, whose ClusterIP falls inside the cluster's service CIDR, which varies per cluster and isn't something this chart can pin narrowly on its own. |
| networkPolicy.extraEgress | list | [] | Additional raw egress rules, appended as-is under spec.egress. |
| networkPolicy.extraIngress | list | [] | Additional raw ingress rules, appended as-is under spec.ingress. |
| nodeSelector | object | {} | Node selector for pod scheduling |
| podAnnotations | object | {} | Annotations to add to pods |
| podDisruptionBudget | object | {"enabled":false,"minAvailable":1} | Pod disruption budget configuration |
| podDisruptionBudget.enabled | bool | false | Enable or disable the pod disruption budget |
| podDisruptionBudget.minAvailable | int | 1 | Minimum number of available pods |
| podSecurityContext | object | {} | Pod security context |
| priorityClassName | string | "" | Priority class name for pods |
| readinessProbe | object | {"config":{"httpGet":{"path":"/readyz","port":8081}},"enabled":false} | Readiness probe configuration |
| readinessProbe.config | object | {"httpGet":{"path":"/readyz","port":8081}} | Readiness probe settings |
| readinessProbe.enabled | bool | false | Enable or disable the readiness probe |
| replicaCount | int | 1 | Number of replicas to deploy |
| resources | object | {"limits":{"memory":"128Mi"},"requests":{"cpu":"10m","memory":"64Mi"}} | Resource requests and limits for the container |
| resources.limits | object | {"memory":"128Mi"} | Resource limits |
| resources.requests | object | {"cpu":"10m","memory":"64Mi"} | Resource requests |
| securityContext | object | {"capabilities":{"drop":["ALL"]},"runAsNonRoot":true} | Container security context |
| serviceAccount | object | {"annotations":{},"create":true,"name":""} | Service account configuration |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | If not set and create is true, a name is generated using the fullname template |
| terminationGracePeriodSeconds | int | 30 | Termination grace period for pods (in seconds) |
| tolerations | list | [] | Tolerations for pod scheduling |
Gotchas
config.datasets the operator's own default images (valkeyImage,exporterImage) and default node count, not anything on a specificValkeyresource. AValkeyCR can still override its own image per-instance; this ConfigMap only changes what the operator falls back to when a CR doesn't set one.clusterrole-editor/clusterrole-vieweraren't wired into the cluster's built-inedit/viewaggregated roles. They're kubebuilder-generated starting points (norbac.authorization.k8s.io/aggregate-to-*label), a cluster admin has to bind or aggregate them explicitly if that's wanted.networkPolicy.enabledallows broad egress to0.0.0.0/0by default. The operator needs to reach the Kubernetes API server, whose ClusterIP falls inside the cluster's service CIDR, which varies per cluster and isn't something this chart can pin narrowly on its own.
Upgrade notes
No breaking changes yet. This section will list migration steps for any future release with
a kind: removed or kind: changed entry in artifacthub.io/changes that requires one.
Deploy valkey-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has valkey-operator 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-operator is pinned at v0.4.0 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