Redis Engine Entry
Use this as the primary create-time entry for Redis. Tier-1 Redis never falls back to kubeblocks-engine-generic.
Cold-Start Contract
- Run kubeblocks-preflight whenever the environment is not already profiled.
- Treat engine-create-matrix as the create-time truth for topology, version strategy, sizing, validation, next hops, and forbidden routes.
- Use observability-capability-matrix before promising scrape or alert readiness.
- Keep the legacy kubeblocks-addon-redis path as preserved detail only, not as the primary cold-start route.
Topology Selection
- Default topology:
replication standalone: only for dev/test or throwaway cache workloads where HA is unnecessary.replication: default choice for most durable Redis rollouts because Sentinel-backed failover is already part of the path.sharding: choose only when the keyspace or write load has outgrown a single shard and the client path can speak Redis Cluster.- If the user only needs a cache and has no explicit horizontal-scale requirement, stay on
replication.
ServiceVersion / Version Strategy
- Strategy: use the stable addon default from current examples unless the user explicitly pins a serviceVersion
- Current preserved evidence centers on Redis
7.2.4, with7.0.6still available as an older supported line. - For
sharding, keep theserviceVersionaligned across shard template and sentinel or access components.
Preflight Interpretation
storage_class: required before apply because Redis persistence still lands on PVC-backed storage.volume_binding_mode: confirm zone behavior before choosing replicated or sharded layouts that span nodes.addon_readiness: Redis addon must be installed first.observability_mode: Redis has exporter, scrape, and alert examples, so pick existing-stack vs bootstrap before rollout.
Sizing Profiles
demo:standaloneor smallreplicationwith modest CPU, memory, and PVCs.production:replicationorshardingwith explicit failover expectations, anti-affinity, and capacity headroom for rebalancing.- For
sharding, treat shard count as a capacity decision, not a cosmetic topology toggle.
Minimal Create Path
apiVersion: apps.kubeblocks.io/v1
kind: Cluster
metadata:
name: <cluster>
namespace: <ns>
spec:
terminationPolicy: Delete
- Do not leave this skill to read raw addon examples before drafting the manifest.
- Set
clusterDef: redisfor every dedicated Redis path in this wave. standalone: settopology: standalone, keep a singlename: rediscomponent, and placeserviceVersion,resources, andvolumeClaimTemplateson that component.replication: settopology: replication, keepname: redisandname: redis-sentinel, and size replicas plus PVCs on the storage-bearing Redis component.sharding: declareshardings:instead of a single component, use templatename: redis, setcomponentDef: redis-cluster-7, and putserviceVersion,replicas,resources, andvolumeClaimTemplateson the shard template.- Validate with
kubectl apply --dry-run=server -f <redis-cluster.yaml>. - Apply with
kubectl apply -f <redis-cluster.yaml>. - Watch
kubectl get cluster <name> -n <ns> -wuntil the phase isRunning.
Connection and Validation
- Supported connection methods:
in-cluster service,port-forward,exposed service - First validation step:
kubectl get cluster <name> -n <ns>and wait forRunning. - Default validation:
redis-cli -h <service> -p 6379 -a <password> PING. - For
sharding, validate withredis-cli -cand a cluster command such asCLUSTER INFObefore handoff.
Next Hops
- Day-2 operations currently route to
kubeblocks-op-lifecycle,kubeblocks-op-horizontal-scale,kubeblocks-op-reconfigure,kubeblocks-op-backup, andkubeblocks-observability-router. - Password and Secret handling can route to kubeblocks-manage-accounts.
- Do not send this path to kubeblocks-rebuild-replica;
rebuild_instanceis not the Redis recovery path in the current ops truth. - Treat kubeblocks-configure-tls as an engine-specific validation task, not an automatic follow-up promise for every Redis rollout.
- If failover, sharding state, or exposure behavior is unclear, route to kubeblocks-troubleshoot.
Forbidden Routes
- Never route Redis create through
kubeblocks-engine-genericorkubeblocks-addon-redis. - Do not collapse Redis into a generic cache path when the user is really asking for replication or cluster sharding semantics.
Evidence Anchors
- Use the evidence anchors below only as optional secondary evidence and parity checks after the manifest is already drafted here. A cold-start runtime should not need these files, but a stronger agent may inspect them when available.
- Preserved detail remains in legacy reference.
- Current addon evidence:
examples/redis/cluster-standalone.yaml,examples/redis/cluster.yaml,examples/redis/cluster-sharding.yaml,examples/redis/cluster-twemproxy.yaml.