Cluster status
This page defines the ValkeyCluster status schema for the Momento Valkey Operator: what each state means, when transitions happen, and how to interpret kubectl get and kubectl describe output. It is reference material for anyone watching a cluster; for symptom-driven remediation, see Troubleshooting.
Status fields
| Field | Type | Meaning |
|---|---|---|
state | enum | Overall cluster state: Creating, Active, Updating, or Invalid. Defaults to Creating. |
targetSpec | object (optional) | Snapshot of the spec the operator is currently working toward. Set when the cluster enters Creating; cleared when it reaches Active. |
nodes | array of string | Schema-reserved for the names of the cluster's pods, but not populated in the current release: no code path writes it. List the cluster's members with kubectl get valkeynodes instead. |
message | string (optional) | Human-readable detail for the current state. Populated when the state is Invalid; cleared on recovery. |
The status subresource has no conditions array; the single state value plus message is the complete signal.
States
Values serialize exactly as shown (PascalCase).
| State | Meaning |
|---|---|
Creating | The operator is bootstrapping the Valkey cluster: creating nodes, forming the cluster topology, assigning slots, and attaching replicas. A brand-new resource whose status has not been written yet is treated as Creating. |
Active | The Valkey cluster is formed and serving. All ongoing management (scaling, rolling replacements, failover recovery) happens while the cluster reports Active. |
Updating | Reserved. This value exists in the schema but is not reported by the current release; rolling replacements run entirely under Active. Treat it as equivalent to Active if you ever observe it. |
Invalid | The spec references something the operator cannot accept. In the current release the only trigger is TLS Secret validation failure. message carries the exact reason. |
Creating → Active
Bootstrap completes (and the state flips to Active) when every node reports a healthy cluster view, all 16384 hash slots are assigned, the shard count meets the target, and every slot-holding primary has at least replicasPerShard replicas. At that moment the operator also clears targetSpec.