GresTenant

API group/version: crabka.io/v1alpha1

Spec

FieldTypeRequiredDefaultDescription
gresstringyesName of the Gres fleet this tenant belongs to.
imagestringnoCompute container image override. When absent, the operator uses its global Gres image override or its compiled default.
overridesobjectnoTenant-specific overrides for fleet defaults.
overrides.checkpointFramesintegernoCheckpoint after this many frames when set.
overrides.checkpointSizestringnoCheckpoint after this much WAL when set.
overrides.idleSecondsintegernoIdle timeout in seconds. When unset, the tenant never suspends because it is idle.
overrides.scramIterationsintegernoPBKDF2 iteration count for tenant Kafka and PostgreSQL SCRAM credentials.
overrides.suspendMaxCheckpointSizestringnoKeep the tenant warm when its latest checkpoint exceeds this size.
overrides.walReplicationintegernoReplication factor for tenant WAL topics.
passwordSecretRefobjectyesSecret key that holds the plaintext tenant password. The reconciler hashes it to a verifier. The reconciler never copies the password to status.
passwordSecretRef.keystringyesSecret data key.
passwordSecretRef.namestringyesSecret name.
rangesarraynoOptional ordered range layout. An omitted layout gives one open-ended range r0. The operator places each entry on a distinct range compute.
resourcesobjectnoCPU and memory resource requests and limits for the tenant compute.
resources.claimsarraynoClaims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
resources.limitsobjectnoLimits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
resources.requestsobjectnoRequests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
suspendedbooleannoSuspends the tenant when true. The operator treats unset as active.
userstringyesSQL user exposed through PgDog and enforced by the tenant compute.

Status

FieldTypeRequiredDefaultDescription
conditionsarrayno[]Kubernetes-style condition list.
lastCheckpointOffsetintegernoLast checkpoint offset observed by the controller.
lifecyclePhasestringnoLifecycle phase last observed by the operator.
observedGenerationintegernometadata.generation of the last successfully-reconciled spec.
pgdogCredentialGraceUntilUnixMsintegernoBounded compatibility window for PgDog 0.1.47 after a resumed compute becomes Active. The fleet reconciler removes the temporary backend credential after this Unix-millisecond deadline.
readybooleannoWhether the tenant is ready to accept connections.
registryVersionintegernoRegistry record version last written for this tenant.
walTopicstringnoTenant WAL topic name.