Custom resources¶
Packages¶
tenax.run/v1alpha1¶
Package v1alpha1 contains the Tenax custom resource types (API group tenax.run).
Resource Types¶
- AIProvider
- AIProviderList
- AIRun
- AIRunList
- Backup
- BackupPolicy
- BackupStore
- BackupTarget
- Restore
- Sandbox
- VolumeExport
- VolumeExportList
- VolumeRestore
- VolumeSandbox
- VolumeTarget
- VolumeTargetList
AIBacktest¶
AIBacktest is a proposed rule replayed by code against the target's stored change history (no model involved).
Appears in: - AIRuleProposal - AnomalyRule
| Field | Description | Default | Validation |
|---|---|---|---|
segments integer |
Segments and Backups replayed, and the time they span. | ||
backups integer |
Optional: {} |
||
from Time |
Optional: {} |
||
to Time |
Optional: {} |
||
strongBefore integer |
StrongBefore and WeakBefore count the signals the history produces with the target's current rules. | ||
weakBefore integer |
|||
suppressedStrong integer |
SuppressedStrong and SuppressedWeak count the signals the rule would have hidden. | ||
suppressedWeak integer |
|||
weakened integer |
Weakened counts strong signals the rule would have turned weak (no automatic protection). | Optional: {} |
|
added integer |
Added counts signals the rule would have raised that the current rules do not. | Optional: {} |
|
incidentSignals integer |
IncidentSignals of the triaged incident found in the history, and how many the rule hides or weakens. | Optional: {} |
|
incidentSuppressed integer |
Optional: {} |
||
incidents AIBacktestIncident array |
Incidents whose signals the rule would have hidden or weakened. | Optional: {} |
|
unsafe boolean |
Unsafe: the rule would have hidden or weakened signals of an incident a person resolved as not intended. | Optional: {} |
|
unsafeReason string |
Optional: {} |
||
truncated boolean |
Truncated: only the newest part of the history fitted. | Optional: {} |
AIBacktestIncident¶
AIBacktestIncident is a past incident a proposed rule touches.
Appears in: - AIBacktest
| Field | Description | Default | Validation |
|---|---|---|---|
id string |
|||
state string |
State: open, intended (resolved as intended) or not-intended (resolved as not intended). | ||
signals integer |
Signals of the incident the rule hides or weakens. |
AIBudget¶
AIBudget limits what a provider may spend. Zero means unlimited.
Appears in: - AIProviderSpec
| Field | Description | Default | Validation |
|---|---|---|---|
tokensPerDay integer |
Optional: {} |
||
costPerMonth string |
CostPerMonth in the price's currency, for example "20" or "12.50". | Optional: {} |
|
requestsPerMinute integer |
Optional: {} |
AICanvas¶
AICanvas is model-written visualization code: an HTML fragment (markup, SVG, inline scripts) that the console only ever runs inside a sandboxed frame without network access, cookies or access to the console, and feeds the run's own (already masked) result by postMessage. It never replaces the code-computed view.
Appears in: - AIResult
| Field | Description | Default | Validation |
|---|---|---|---|
title string |
Title of the visualization, plain text. | MaxLength: 120 Optional: {} |
|
code string |
Code is the HTML fragment, at most 64 KiB. | MaxLength: 65536 |
|
provider string |
Provider that wrote it (its spec.creative must still be on for the console to show it). |
AIEvidence¶
AIEvidence is one fact a result cites: the code checks that every cited ID was collected by the run.
Appears in: - AIResult
| Field | Description | Default | Validation |
|---|---|---|---|
id string |
|||
kind string |
Kind: job, pod, event, log, backup, target, provider, incident, signal, context, baseline, history. | ||
text string |
What it says, as collected (quoted data, never instructions). |
AIFeature¶
AIFeature routes one feature to this provider.
Appears in: - AIProviderSpec
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
Name of the feature: backup-failure, anomaly-triage, doctor (and the workflows that come later). | ||
priority integer |
Priority among the providers that name the feature (lower is tried first). | Optional: {} |
AIFinding¶
AIFinding is one claim of a result.
Appears in: - AIResult
| Field | Description | Default | Validation |
|---|---|---|---|
summary string |
|||
detail string |
Optional: {} |
||
evidence string array |
Evidence IDs this finding rests on. | Optional: {} |
|
severity string |
Severity (security-posture): critical, high, medium, low or info. Code computes it from the checks the finding cites, never the model. |
Optional: {} |
|
recommendation string |
Recommendation is a proposed change in plain text; Tenax never applies it. | Optional: {} |
AIForecast¶
AIForecast is a capacity-forecast of one store or target. Code fits the trend and computes every number.
Appears in: - AIResult
| Field | Description | Default | Validation |
|---|---|---|---|
subject string |
Subject: a store name, or namespace/name of a target. | ||
kind string |
Kind: store or target. | ||
model string |
Model: linear, exponential, or flat (too little history to fit). | ||
currentBytes integer |
CurrentBytes stored now. | ||
growthBytesPerDay integer |
GrowthBytesPerDay at the run's time. | Optional: {} |
|
errorPermille integer |
ErrorPermille is the fit's relative error (RMSE over the mean, per mille). | Optional: {} |
|
history AISeriesPoint array |
Observed points (full backup sizes for a target, the sum of its targets' for a store), at most 60. | Optional: {} |
|
forecast AISeriesPoint array |
Forecast at 30, 90 and 180 days. | Optional: {} |
|
quotaBytes integer |
QuotaBytes of the store (spec.quota), and when the forecast reaches it (central and earliest in the band). | Optional: {} |
|
quotaTime Time |
Optional: {} |
||
quotaEarliest Time |
Optional: {} |
||
evidence string array |
Optional: {} |
AIGrade¶
AIGrade is a restore-drill report card of one target. Code computes the grade and score from the objectives.
Appears in: - AIResult
| Field | Description | Default | Validation |
|---|---|---|---|
target string |
Target as namespace/name. | ||
grade string |
Grade A to F. | Enum: [A B C D F] |
|
score integer |
Score 0 to 100. | ||
objectives AIObjective array |
|||
backups integer |
Backups in the catalog, how many a verification restore passed or failed on. | Optional: {} |
|
verifiedBackups integer |
Optional: {} |
||
failedVerifications integer |
Optional: {} |
||
lastVerified Time |
Optional: {} |
||
measuredRTOSeconds integer |
MeasuredRTOSeconds is the duration of the last passed verification restore. | Optional: {} |
|
evidence string array |
Evidence IDs of this card's facts. | Optional: {} |
AILocal¶
AILocal runs the provider's model inside the cluster (ADR 0038): the controller keeps an Ollama Deployment, its Service and a NetworkPolicy that admits only tenax-ai, all owned by the provider, so deleting the provider removes them. The model is downloaded into the pod's node disk (an emptyDir) unless a storage class keeps it on a volume.
Appears in: - AIProviderSpec
| Field | Description | Default | Validation |
|---|---|---|---|
model string |
Model is the Ollama model to download and serve (for example qwen3:4b-instruct); spec.models names it. | MaxLength: 120 Pattern: ^[a-z0-9][a-zA-Z0-9._/-]*(:[a-zA-Z0-9._-]+)?$ |
|
image string |
Image of the model server (default: the chart's ai.local.image). | Optional: {} |
|
resources ResourceRequirements |
Resources of the model server (default: what the console's catalog lists for the model, else 2 CPUs and 8Gi). | Optional: {} |
|
storage string |
Storage for the downloaded model (default: the catalog's for the model, else 10Gi): the node disk the pod requests, or the volume's size. |
Optional: {} |
|
storageClass string |
StorageClass keeps the model on a PersistentVolumeClaim of this class, so a restarted server does not download it again (default: the chart's ai.local.storageClass; empty: the node's disk, downloaded again by each new pod). The class must exist. |
MaxLength: 253 Optional: {} |
|
internet boolean |
Internet lets the model server reach the internet while it serves. Off by default: the server's egress is open only while it downloads the model. |
Optional: {} |
|
contextLength integer |
ContextLength in tokens the server loads the model with (default 8192); the memory it needs grows with it. | Maximum: 131072 Minimum: 2048 Optional: {} |
|
nodeSelector object (keys:string, values:string) |
NodeSelector and Tolerations place the server, for example on GPU nodes. | Optional: {} |
|
tolerations Toleration array |
Optional: {} |
AILocalStatus¶
AILocalStatus reports the in-cluster model server.
Appears in: - AIProviderStatus
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Phase: Pending (waiting for a node or its volume), Downloading, Starting, Ready or Failed. | Optional: {} |
|
message string |
Optional: {} |
||
progress integer |
Progress of the download in percent. | Optional: {} |
|
model string |
Model is the model the server runs (spec.local.model as last reconciled). | Optional: {} |
|
downloaded string |
Downloaded is the model the volume holds, once its download finished. | Optional: {} |
|
endpoint string |
Endpoint tenax-ai calls (OpenAI-compatible, inside the cluster). | Optional: {} |
|
readySince Time |
ReadySince is when the server last became ready. | Optional: {} |
|
doctor string |
Doctor is the AIRun that probed the server once it was ready. | Optional: {} |
AIModel¶
AIModel is one model a provider serves.
Appears in: - AIProviderSpec
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
Name as the provider's API knows it (for example gpt-4.1-mini, deepseek-chat, llama3.1:8b). | ||
role string |
Role: fast models extract and classify, smart models synthesise. A provider with one model uses it for both. | Enum: [fast smart] Optional: {} |
|
contextWindow integer |
ContextWindow in tokens; prompts that would not fit are not sent. | Optional: {} |
|
price AIModelPrice |
Optional: {} |
AIModelPrice¶
AIModelPrice is a model's price per million tokens, in the currency of the provider's bill.
Appears in: - AIModel
| Field | Description | Default | Validation |
|---|---|---|---|
input string |
Optional: {} |
||
cachedInput string |
CachedInput is the price of input read from the provider's prompt cache (default: Input). | Optional: {} |
|
output string |
Optional: {} |
AIObjective¶
AIObjective is one recoverability objective of a report card, measured by code.
Appears in: - AIGrade
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
Name: rpo, rto, verified-recently, last-verification or integrity. | ||
status string |
Status: met, missed or unmeasured. | ||
points integer |
Points this objective adds to the score, of Max. | ||
max integer |
|||
valueSeconds integer |
ValueSeconds is what was measured (the newest point's age, the restore time, the verification's age) and ObjectiveSeconds the objective it is compared with; 0 when not applicable. |
Optional: {} |
|
objectiveSeconds integer |
Optional: {} |
||
detail string |
Optional: {} |
AIProvider¶
AIProvider is a model endpoint Tenax may use (ADR 0029). Without one, no AI feature runs and nothing leaves the cluster.
Appears in: - AIProviderList
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
AIProvider |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec AIProviderSpec |
|||
status AIProviderStatus |
AIProviderList¶
AIProviderList lists AIProviders.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
AIProviderList |
||
metadata ListMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
items AIProvider array |
AIProviderSpec¶
AIProviderSpec describes one model endpoint (ADR 0029).
Appears in: - AIProvider
| Field | Description | Default | Validation |
|---|---|---|---|
type string |
Type: openai (any OpenAI-compatible API: OpenAI, Azure OpenAI, DeepSeek, Ollama, vLLM, llama.cpp, LiteLLM) or anthropic. |
Enum: [openai anthropic] |
|
baseURL string |
BaseURL of the API: for openai up to the version (https://api.openai.com/v1, http://ollama.ai:11434/v1); for anthropic without /v1 (default https://api.anthropic.com). |
Optional: {} |
|
credentialsSecret string |
CredentialsSecret in Tenax's namespace holding the key "apiKey" (omit for endpoints without a key, such as a local Ollama). Never logged and never copied into status. |
Optional: {} |
|
authHeader string |
AuthHeader for openai: Authorization (Bearer, the default) or api-key (Azure OpenAI). | Enum: [Authorization api-key] Optional: {} |
|
jsonMode string |
JSONMode for openai: schema (the default), object (servers without schema support) or none. | Enum: [schema object none] Optional: {} |
|
models AIModel array |
MinItems: 1 |
||
default boolean |
Default makes the provider serve every feature that no other provider names. | Optional: {} |
|
fallback boolean |
Fallback makes the provider serve every feature after the providers that name it and the default ones: a cloud model behind a local one, or a larger model behind a small one. It is also asked when another provider is unreachable or its answer stays invalid. |
Optional: {} |
|
features AIFeature array |
Optional: {} |
||
dataPolicy string |
DataPolicy is the most this provider may receive: metadata (names, counts, statuses, log lines; the default) or maskedPreviews (also masked row previews). |
Enum: [metadata maskedPreviews] Optional: {} |
|
tier integer |
Tier caps the capability tier the doctor measured (0 text, 1 JSON, 2 one tool call, 3 multi-step tools); an administrator can lower it, never raise it. |
Maximum: 3 Minimum: 0 Optional: {} |
|
budget AIBudget |
Optional: {} |
||
creative boolean |
Creative lets the provider write a visualization of each answer (HTML, SVG and JavaScript) that the console runs only in a sandboxed frame with no network, no cookies and no access to the console (ADR 0036). Off by default. |
Optional: {} |
|
local AILocal |
Local runs the model inside the cluster instead of calling baseURL (ADR 0038). | Optional: {} |
AIProviderStatus¶
AIProviderStatus reports the provider's measured tier and its usage.
Appears in: - AIProvider
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
measuredTier integer |
Tier the last doctor run measured (-1 when the endpoint did not answer). | Optional: {} |
|
probeTime Time |
Optional: {} |
||
day string |
Day (UTC, YYYY-MM-DD) and the tokens used in it. | Optional: {} |
|
dayTokens integer |
Optional: {} |
||
month string |
Month (UTC, YYYY-MM) and the estimated cost in it. | Optional: {} |
|
monthCost string |
Optional: {} |
||
local AILocalStatus |
Local reports the in-cluster model server of a provider with spec.local. | Optional: {} |
AIRecommendation¶
AIRecommendation is Tenax's own advice for one failed check (security-posture): written in code, never by the model, so it is there even when the model's narrative is short. Text is English; the console translates it.
Appears in: - AIResult
| Field | Description | Default | Validation |
|---|---|---|---|
check string |
Check is the evidence ID of the check it answers. | ||
key string |
Key names the recommendation (the kind of check, for example target/privileges/postgres); stable across releases. |
||
text string |
Text says what to change and when it applies. | ||
where string |
Where: the chart value, database setting or Kubernetes object to change. | Optional: {} |
|
example string |
Example is a snippet to adapt: a Helm value, an SQL statement or a command. Values to fill in are in angle brackets. |
Optional: {} |
|
docs string |
Docs links the documentation page that explains it. | Optional: {} |
AIResult¶
AIResult is what a run concluded.
Appears in: - AIRunStatus
| Field | Description | Default | Validation |
|---|---|---|---|
verdict string |
Verdict: explained, inconclusive (the evidence does not settle it), for anomaly-triage intended, suspicious or unknown, for security-posture findings or clean, for restore-drill and capacity-forecast reported, for ask answered or refused, and for doctor probed. |
||
summary string |
Optional: {} |
||
findings AIFinding array |
Optional: {} |
||
fix string |
Fix proposes what a person should do; Tenax never applies it. | Optional: {} |
|
evidence AIEvidence array |
Optional: {} |
||
recommendations AIRecommendation array |
Recommendations are Tenax's own, one per failed check (security-posture), written by code; the model's findings may tailor and order them but never replace them. |
Optional: {} |
|
proposal AIRuleProposal |
Proposal is the detector rule an anomaly-triage run proposes for an intended pattern, with its backtest. | Optional: {} |
|
grades AIGrade array |
Grades are restore-drill report cards, one per target. | Optional: {} |
|
forecasts AIForecast array |
Forecasts are capacity-forecast series, per store and for the fastest-growing targets. | Optional: {} |
|
toolCalls AIToolCall array |
ToolCalls an ask run made. | Optional: {} |
|
scene AISceneHint |
Scene is the model's validated suggestion for the console's view of the answer (ADR 0036). | Optional: {} |
|
canvas AICanvas |
Canvas is a visualization a creative provider wrote for this answer (ADR 0036). | Optional: {} |
AIRuleProposal¶
AIRuleProposal is the detector rule a triage run proposes, with the evidence it rests on and its backtest. It is never applied by Tenax: a person applies it (tenax ai rules apply).
Appears in: - AIResult
| Field | Description | Default | Validation |
|---|---|---|---|
rule AnomalyRule |
|||
rationale string |
Optional: {} |
||
evidence string array |
Optional: {} |
||
backtest AIBacktest |
Optional: {} |
AIRun¶
AIRun is one run of an AI workflow (ADR 0029). The model only reads and proposes; nothing it says is applied.
Appears in: - AIRunList
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
AIRun |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec AIRunSpec |
|||
status AIRunStatus |
AIRunList¶
AIRunList lists AIRuns.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
AIRunList |
||
metadata ListMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
items AIRun array |
AIRunSpec¶
AIRunSpec asks for one workflow run.
Appears in: - AIRun
| Field | Description | Default | Validation |
|---|---|---|---|
workflow string |
Workflow: backup-failure (why did this backup fail), anomaly-triage (was this incident intended, and which detector rule would quiet it), security-posture (ranked security findings of the installation; runs in Tenax's namespace), restore-drill (a report card per target from verifications and objectives), capacity-forecast (store growth at 30, 90 and 180 days), ask (a question answered with read-only tools) or doctor (probe every provider's tier). |
Enum: [backup-failure anomaly-triage security-posture restore-drill capacity-forecast ask doctor] |
|
backup string |
Backup (in the run's namespace) a backup-failure run explains. | Optional: {} |
|
target string |
Target (a BackupTarget in the run's namespace) whose incident an anomaly-triage run looks at, or the one target a restore-drill run grades (default: every target in its scope). |
Optional: {} |
|
incident string |
Incident ID (as tenax incidents lists it) an anomaly-triage run looks at. | Optional: {} |
|
question string |
Question an ask run answers (quoted as data; at most 500 characters). | MaxLength: 500 Optional: {} |
|
followUp string |
FollowUp names the earlier ask run (in the run's namespace) this question continues: the model sees that conversation's last turns, never their evidence, and the tools gather fresh evidence (ADR 0038). |
Optional: {} |
|
provider string |
Provider restricts the run to one provider (doctor: probe only this one). | Optional: {} |
|
maxTokens integer |
MaxTokens caps the whole run (default 200000). | Optional: {} |
|
requestedBy string |
Optional: {} |
AIRunStatus¶
AIRunStatus reports a run. Checkpoint holds the workflow's state after its last finished step, so a run survives the runner being killed.
Appears in: - AIRun
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
step string |
Optional: {} |
||
steps AIStepStatus array |
Optional: {} |
||
inputTokens integer |
Optional: {} |
||
cachedInputTokens integer |
Optional: {} |
||
outputTokens integer |
Optional: {} |
||
cost string |
Cost estimated from the providers' prices. | Optional: {} |
|
providers string array |
Providers that served the run's calls. | Optional: {} |
|
result AIResult |
Optional: {} |
||
startTime Time |
Optional: {} |
||
completionTime Time |
Optional: {} |
||
checkpoint string |
Checkpoint is the engine's state (JSON). | Optional: {} |
AISceneHint¶
AISceneHint is what a model may suggest about how the console draws its answer (ADR 0036): which view, which evidence holds the root cause, what to emphasise, and short captions. Tenax keeps only the kinds the workflow allows and the IDs the run collected, and draws every position, size, colour and number from its own data: nothing in it is rendered as markup, code, an image or a coordinate.
Appears in: - AIResult
| Field | Description | Default | Validation |
|---|---|---|---|
kind string |
Kind of view: constellation (the findings and their evidence as a star map), wormhole (the evidence on the target's timeline), terrain (change volume and the proposed rule), shield (security findings), orbits (report cards), horizon (growth forecasts) or toolpath (an answer's tool calls). Each workflow allows its own. |
Enum: [constellation wormhole terrain shield orbits horizon toolpath] Optional: {} |
|
focus string |
Focus is the ID of the evidence item that shows the root cause. | Optional: {} |
|
emphasis string array |
Emphasis lists evidence IDs worth highlighting. | MaxItems: 8 Optional: {} |
|
captions object (keys:string, values:string) |
Captions by evidence ID: plain text of at most 120 characters, shown as text. | MaxProperties: 8 Optional: {} |
AISeriesPoint¶
AISeriesPoint is one point of a series: a time and bytes, with the band of a forecast.
Appears in: - AIForecast
| Field | Description | Default | Validation |
|---|---|---|---|
time Time |
|||
bytes integer |
|||
low integer |
Low and High bound a forecast point (a 95% band); absent on observed points. | Optional: {} |
|
high integer |
Optional: {} |
||
days integer |
Days after the run (forecast points). | Optional: {} |
AIStepStatus¶
AIStepStatus is one executed step.
Appears in: - AIRunStatus
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
|||
outcome string |
|||
attempts integer |
Optional: {} |
||
inputTokens integer |
Optional: {} |
||
cachedInputTokens integer |
Optional: {} |
||
outputTokens integer |
Optional: {} |
||
cost string |
Optional: {} |
||
error string |
Optional: {} |
AIToolCall¶
AIToolCall is one read-only tool call an ask run made (or refused).
Appears in: - AIResult
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
|||
arguments string |
Optional: {} |
||
evidence string array |
Evidence IDs the call's result became. | Optional: {} |
|
refused string |
Refused says why the call was not run (an unknown tool, a target out of scope, the cap). | Optional: {} |
AnomalyRule¶
AnomalyRule is one detector rule of a target (ADR 0029). Rules change how a table is scored or hide signals inside a recurring window; they never teach the baseline that a hidden mass delete is normal, and drops and the sign of data being encrypted (compression-drop) cannot be tuned away.
Appears in: - AIRuleProposal - BackupTargetSpec
| Field | Description | Default | Validation |
|---|---|---|---|
id string |
ID names the rule on its target. | MaxLength: 63 Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ |
|
kind string |
Kind: threshold (a table's mass-delete thresholds are multiplier times higher), ignore-window (signals inside a recurring time window are hidden) or table-role (what deletes mean for a table). |
Enum: [threshold ignore-window table-role] |
|
signal string |
Signal an ignore-window hides: mass-delete (the default), truncate, schema-change or rows-drop. | Enum: [mass-delete truncate schema-change rows-drop] Optional: {} |
|
table string |
Table as the change stream names it (database.schema.table); * matches any characters. An ignore-window without a table applies to every table. |
MaxLength: 253 Optional: {} |
|
multiplier integer |
Multiplier (threshold) of the table's minimum rows and rate factor. | Maximum: 100 Minimum: 2 Optional: {} |
|
schedule string |
Schedule (ignore-window) starts the window: five cron fields, for example "0 3 * * 0" (Sundays at 03:00). | MaxLength: 100 Optional: {} |
|
duration Duration |
Duration (ignore-window) of the window, at most 24h. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
timeZone string |
TimeZone of the schedule (IANA name; default UTC). | MaxLength: 64 Optional: {} |
|
role string |
Role (table-role): high-churn (mass deletes and truncates are routine), append-only (deleting at least minRows rows is strong at once) or ledger (any deleted row is strong). |
Enum: [high-churn append-only ledger] Optional: {} |
|
appliedBy string |
AppliedBy is who applied the rule (audited). | Optional: {} |
|
appliedAt Time |
Optional: {} |
||
reason string |
Reason the person gave (audited). | MaxLength: 500 Optional: {} |
|
sourceRun string |
SourceRun is the AIRun (namespace/name) that proposed the rule. | Optional: {} |
|
backtest AIBacktest |
Backtest of the rule when it was applied. | Optional: {} |
|
forced boolean |
Forced: applied although its backtest marked it unsafe. | Optional: {} |
AnomalySpec¶
AnomalySpec configures anomaly scoring and its automatic protection (ADR 0026).
Appears in: - BackupPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
disabled boolean |
Optional: {} |
||
minRows integer |
MinRows: a segment deleting fewer rows from a table is never a mass delete (default 1000). | Optional: {} |
|
sandbox boolean |
Sandbox opens a sandbox at the point just before a strong incident (off by default: it uses resources). | Optional: {} |
|
contextNamespaces string array |
ContextNamespaces are searched, with the target's own, for rollouts and Jobs started shortly before an incident (the services that write to the database usually live elsewhere). |
Optional: {} |
Backup¶
Backup is one full backup run.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
Backup |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec BackupSpec |
|||
status BackupStatus |
BackupPolicy¶
BackupPolicy holds schedules, retention and limits. Targets look a policy up in their own namespace first, then in Tenax's namespace (shared presets).
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
BackupPolicy |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec BackupPolicySpec |
|||
status BackupPolicyStatus |
BackupPolicySpec¶
BackupPolicySpec is shared configuration for many targets.
Appears in: - BackupPolicy
| Field | Description | Default | Validation |
|---|---|---|---|
store string |
BackupStore name. | ||
full FullSchedule |
|||
pitr PITRSpec |
Optional: {} |
||
retain RetainSpec |
Optional: {} |
||
limits LimitsSpec |
Optional: {} |
||
loadGuard LoadGuardSpec |
Optional: {} |
||
verify VerifySpec |
Optional: {} |
||
objectives ObjectivesSpec |
Objectives are recoverability targets the controller measures and corrects (ADR 0024). | Optional: {} |
|
anomaly AnomalySpec |
Anomaly scores the change stream and full backups against the target's normal activity and protects a good point when something unusual happens (ADR 0026). On by default. |
Optional: {} |
|
jobs JobSpec |
Optional: {} |
||
compression CompressionSpec |
Compression of backup data (on by default: zstd, level default). | Optional: {} |
|
sandbox SandboxPolicy |
Optional: {} |
||
keepBackupObjects integer |
How many Backup objects to keep per target in the API server (S3 keeps everything). Default 20. | Optional: {} |
BackupPolicyStatus¶
BackupPolicyStatus reports validation.
Appears in: - BackupPolicy
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
BackupRef¶
BackupRef is a short reference to a backup.
Appears in: - BackupTargetStatus
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
Optional: {} |
||
id string |
Optional: {} |
||
time Time |
Optional: {} |
||
phase string |
Optional: {} |
BackupSpec¶
BackupSpec requests one full backup run. Backups imported from S3 carry spec.backupID.
Appears in: - Backup
| Field | Description | Default | Validation |
|---|---|---|---|
target string |
BackupTarget name in the same namespace. | ||
reason string |
Optional: {} |
||
requestedBy string |
Optional: {} |
||
backupID string |
Set for backups that already exist in S3 (catalog import); the controller then only mirrors them. | Optional: {} |
|
pinned boolean |
Retention hold. | Optional: {} |
|
pinReason string |
Optional: {} |
||
pinExpires Time |
Optional: {} |
||
skipLoadGuard boolean |
Skip the load guard (manual runs may set it). | Optional: {} |
BackupStatus¶
BackupStatus reports a run.
Appears in: - Backup
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
backupID string |
Optional: {} |
||
manifestKey string |
Optional: {} |
||
queuedTime Time |
Optional: {} |
||
startTime Time |
Optional: {} |
||
completionTime Time |
Optional: {} |
||
bytes integer |
Bytes is the backup's uncompressed (logical) size: what the dump or base backup streamed. | Optional: {} |
|
compressedBytes integer |
CompressedBytes is what the backup occupies in the store (compressed and encrypted). | Optional: {} |
|
databaseBytes integer |
DatabaseBytes is the size the backed-up databases had on the server. | Optional: {} |
|
minRestoreBytes integer |
MinRestoreBytes is the smallest disk the backup restores into, without replaying changes: data, the engine's WAL or redo space and a margin (ADR 0030). |
Optional: {} |
|
durationSeconds integer |
Optional: {} |
||
startLSN string |
Optional: {} |
||
endLSN string |
Optional: {} |
||
binlogFile string |
Optional: {} |
||
binlogPos integer |
Optional: {} |
||
gtidSet string |
Optional: {} |
||
inventorySummary InventorySummary |
Optional: {} |
||
tiers string array |
Optional: {} |
||
verified boolean |
Optional: {} |
||
verifiedTime Time |
Optional: {} |
||
postpones integer |
Optional: {} |
||
postponedUntil Time |
Optional: {} |
||
attempts integer |
Optional: {} |
||
jobName string |
Optional: {} |
||
warnings string array |
Optional: {} |
||
progress Progress |
Optional: {} |
||
priority integer |
Optional: {} |
||
serverKey string |
Optional: {} |
||
pinSynced boolean |
Optional: {} |
BackupStore¶
BackupStore is an S3 bucket plus encryption recipients.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
BackupStore |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec BackupStoreSpec |
|||
status BackupStoreStatus |
BackupStoreSpec¶
BackupStoreSpec defines where backups go.
Appears in: - BackupStore
| Field | Description | Default | Validation |
|---|---|---|---|
s3 S3Spec |
|||
prefix string |
Key prefix inside the bucket, for example "cluster-a/". | Optional: {} |
|
encryption EncryptionSpec |
|||
upload UploadSpec |
Optional: {} |
||
readOnly boolean |
Read-only stores are browsed and restored from but never written or garbage collected (shared across clusters). |
Optional: {} |
|
scrub ScrubSpec |
Scrub re-reads stored backups on a schedule and checks every object against its manifest (ADR 0024). | Optional: {} |
|
quota string |
Quota is the space the bucket may use, for example 2Ti. Tenax enforces nothing: the capacity forecast says when the store's growth would reach it. |
Optional: {} |
|
replicas ReplicaSpec array |
Replicas are other BackupStores this store's backups are copied to, as they are (still encrypted), on an interval (ADR 0044). Restores read from a replica when this store cannot be reached, and with writeFallback new backups go to it meanwhile and are copied back once this store is reachable again. |
Optional: {} |
BackupStoreStatus¶
BackupStoreStatus reports store reachability.
Appears in: - BackupStore
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
lastCheckTime Time |
Optional: {} |
||
lastGCTime Time |
Optional: {} |
||
lastGCDeleted integer |
Optional: {} |
||
lastGCPlanKey string |
Optional: {} |
||
lastImportTime Time |
LastImportTime is when the controller last mirrored this store's backups into Backup objects (automatic recovery: after a cluster is rebuilt, every backup in the store reappears without manual steps). |
Optional: {} |
|
lastImportCreated integer |
LastImportCreated is how many Backup objects that import created (0 when nothing was missing). | Optional: {} |
|
scrubJob string |
ScrubJob is the running scrub Job, if any. | Optional: {} |
|
lastScrubTime Time |
Optional: {} |
||
lastScrubChecked integer |
LastScrubChecked is how many backups the last scrub read; LastScrubFailed how many it quarantined. | Optional: {} |
|
lastScrubFailed integer |
Optional: {} |
||
lastScrubReportKey string |
Optional: {} |
||
replicas ReplicaStatus array |
Replicas reports the copy to each replica (ADR 0044). | Optional: {} |
|
copyJob string |
CopyJob is the running one-shot copy Job (tenax store copy), if any. |
Optional: {} |
|
lastCopyReportKey string |
Optional: {} |
BackupTarget¶
BackupTarget is one database server to protect; it lives next to the database.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
BackupTarget |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec BackupTargetSpec |
|||
status BackupTargetStatus |
BackupTargetSpec¶
BackupTargetSpec describes one database server (or a subset of its databases).
Appears in: - BackupTarget
| Field | Description | Default | Validation |
|---|---|---|---|
engine string |
Enum: [postgres mysql mongodb] |
||
endpoint Endpoint |
|||
databases string array |
Databases to back up; ["*"] (default) means all non-template databases. | Optional: {} |
|
credentials TargetCredentials |
|||
policy string |
BackupPolicy name. | ||
pitr PITRSpec |
Overrides the policy's PITR setting. | Optional: {} |
|
scope ScopeSpec |
Optional: {} |
||
checks TargetCheck array |
Optional: {} |
||
mask string array |
Column name regexes masked in previews and the table browser, for example [email, phone, "password.*"]. | Optional: {} |
|
previews PreviewSpec |
Optional: {} |
||
sandbox SandboxTemplate |
Optional: {} |
||
exactCounts ExactCountSpec |
Optional: {} |
||
suspend boolean |
Pause scheduled backups and streams. | Optional: {} |
|
anomalyRules AnomalyRule array |
AnomalyRules tune the anomaly detector for this target's tables (ADR 0029, workflow anomaly-triage). A person applies them, usually with tenax ai rules apply after reading a triage run's backtest. |
MaxItems: 50 Optional: {} |
BackupTargetStatus¶
BackupTargetStatus reports the target's backup state.
Appears in: - BackupTarget
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
lastBackup BackupRef |
Optional: {} |
||
lastSuccessTime Time |
Optional: {} |
||
lastScheduleTime Time |
Optional: {} |
||
nextRunTime Time |
Optional: {} |
||
lastVerification BackupRef |
Optional: {} |
||
lastVerifyScheduleTime Time |
Optional: {} |
||
pitr PITRStatus |
Optional: {} |
||
serverVersion string |
Optional: {} |
||
storeBytes integer |
Optional: {} |
||
handledBackupNow string |
Optional: {} |
||
handledVerifyNow string |
Optional: {} |
||
prefix string |
Key prefix of this target in the store. | Optional: {} |
|
lastVerifiedTime Time |
LastVerifiedTime is when a verification restore last passed, LastVerifyRTOSeconds how long it took. | Optional: {} |
|
lastVerifyRTOSeconds integer |
Optional: {} |
||
objectiveActionTime Time |
ObjectiveActionTime is when the controller last acted on a missed objective (rate limit). | Optional: {} |
|
lastIncident string |
LastIncident is the newest anomaly incident (ADR 0026); open incidents also set the Anomaly condition. | Optional: {} |
|
lastIncidentTime Time |
Optional: {} |
CheckResult¶
CheckResult is the outcome of one check.
Appears in: - RestoreStatus
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
|||
passed boolean |
|||
message string |
Optional: {} |
CommonStatus¶
CommonStatus is embedded in every status.
Appears in: - AIProviderStatus - AIRunStatus - BackupPolicyStatus - BackupStatus - BackupStoreStatus - BackupTargetStatus - RestoreStatus - SandboxStatus - VolumeExportStatus - VolumeRestoreStatus - VolumeSandboxStatus - VolumeTargetStatus
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
CompressionSpec¶
CompressionSpec tunes how backup data is compressed before it is encrypted (ADR 0013).
Appears in: - BackupPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
algorithm string |
Algorithm: zstd (default) or none. Use none only for data that is already compressed, or when the Job's CPU is the bottleneck and the network is not. |
Enum: [zstd none] Optional: {} |
|
level string |
Level: fastest, default (the default), better or best. Higher levels store less and use more CPU; restores decompress at the same speed whatever the level. |
Enum: [fastest default better best] Optional: {} |
|
threads integer |
Threads per mover (0: one per CPU of the Job's limit). Streamers use one thread unless this is set. | Maximum: 64 Minimum: 0 Optional: {} |
Duration¶
Underlying type: string
Duration is a duration string that also accepts days and weeks ("7d", "2w", "36h", "15m").
Validation:
- Pattern: ^([0-9]+(\.[0-9]+)?(ns|us|ms|s|m|h|d|w))+$
Appears in: - AnomalyRule - ExactCountSpec - FullSchedule - JobSpec - LoadGuardSpec - ObjectivesSpec - PITRSpec - ReplicaSpec - SandboxDestination - SandboxPolicy - SandboxSpec - ScrubSpec - VolumeCopySpec - VolumeExportSpec - VolumeSandboxSpec - VolumeSnapshotSpec
EncryptionSpec¶
EncryptionSpec configures client-side age encryption.
Appears in: - BackupStoreSpec
| Field | Description | Default | Validation |
|---|---|---|---|
ageRecipients string array |
age X25519 recipients (public keys). Every data object is encrypted to all of them. | MinItems: 1 |
|
identitySecret SecretKeyRef |
Secret holding the age identity (private key) under key "identity". Only restorer Jobs read it. | Optional: {} |
|
catalogRecipients string array |
Extra recipients for catalog objects only (inventories and masked previews, never dumps or WAL). The console decrypts them with catalogIdentitySecret (ADR 0009). |
Optional: {} |
|
catalogIdentitySecret SecretKeyRef |
Secret with the catalog identity under key "identity" (read by tenax-api). | Optional: {} |
Endpoint¶
Endpoint is a database network address.
Appears in: - BackupTargetSpec - NewDatabaseDestination
| Field | Description | Default | Validation |
|---|---|---|---|
host string |
|||
port integer |
Optional: {} |
ExactCountSpec¶
ExactCountSpec enables count(*) for small tables during inspection.
Appears in: - BackupTargetSpec
| Field | Description | Default | Validation |
|---|---|---|---|
enabled boolean |
Optional: {} |
||
maxRows integer |
Only tables with an estimate below this. Default 100000. | Optional: {} |
|
timeout Duration |
Per-query timeout. Default 5s. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
ExportQuery¶
ExportQuery is a selective export stored as CSV next to the dump.
Appears in: - ScopeSpec
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
|||
database string |
Optional: {} |
||
sql string |
FullSchedule¶
FullSchedule configures scheduled full backups.
Appears in: - BackupPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
schedule string |
Cron expression (5 fields). | ||
timeZone string |
IANA time zone for the schedule and for tier assignment. Default UTC. | Optional: {} |
|
jitter Duration |
Maximum deterministic per-target offset added to the schedule, for example 20m. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
startingDeadline Duration |
A missed run is executed once on start if it is not older than this. Default 6h. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
InPlaceDestination¶
InPlaceDestination restores over the original target.
Appears in: - RestoreDestination
| Field | Description | Default | Validation |
|---|---|---|---|
confirm string |
Must equal the target name. | ||
credentialsSecretRef LocalSecretRef |
Admin user able to drop and recreate the databases, in the target's namespace. | ||
skipSafetyBackup boolean |
Skip the automatic safety backup (not recommended). | Optional: {} |
InventorySummary¶
InventorySummary is a short inventory.
Appears in: - BackupStatus
| Field | Description | Default | Validation |
|---|---|---|---|
databases integer |
Optional: {} |
||
tables integer |
Optional: {} |
||
rowsEstimate integer |
Optional: {} |
||
schemaHash string |
Optional: {} |
||
migrationVersion string |
Optional: {} |
JobSpec¶
JobSpec tunes mover/restorer Jobs.
Appears in: - BackupPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
activeDeadline Duration |
Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
||
backoffLimit integer |
Optional: {} |
||
stallTimeout Duration |
Watchdog: abort when no bytes flow for this long. Default 60s. Before its first byte a dump may take ten times as long (pg_basebackup waits for a checkpoint, pg_dump and mysqldump for their locks). |
Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
cpu string |
Optional: {} |
||
memory string |
Optional: {} |
LimitsSpec¶
LimitsSpec bounds concurrency and bandwidth.
Appears in: - BackupPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
perHost integer |
Optional: {} |
||
perTarget integer |
Optional: {} |
||
global integer |
Optional: {} |
||
bandwidth string |
Upload rate limit per mover, for example 200Mi (bytes per second). | Optional: {} |
|
restoreBandwidth string |
Download rate limit per restorer. | Optional: {} |
|
priority integer |
Higher runs first. | Optional: {} |
LoadGuardSpec¶
LoadGuardSpec postpones backups when the server is busy.
Appears in: - BackupPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
maxActiveConnections integer |
Optional: {} |
||
maxReplicationLagSeconds integer |
Optional: {} |
||
maxLongTransactionSeconds integer |
Optional: {} |
||
postponeFor Duration |
Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
||
maxPostpones integer |
Optional: {} |
LocalSecretRef¶
LocalSecretRef points at a Secret in the same namespace with configurable keys.
Appears in: - InPlaceDestination - NewDatabaseDestination - TargetCredentials
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
|||
usernameKey string |
Key holding the user name. Default "username". | Optional: {} |
|
passwordKey string |
Key holding the password. Default "password". | Optional: {} |
NamespacedName¶
NamespacedName references a namespaced object.
Appears in: - SandboxSource
| Field | Description | Default | Validation |
|---|---|---|---|
namespace string |
|||
name string |
NewDatabaseDestination¶
NewDatabaseDestination writes into a new database on an existing server.
Appears in: - RestoreDestination
| Field | Description | Default | Validation |
|---|---|---|---|
endpoint Endpoint |
|||
database string |
Name of the database to create. With several source databases, " |
||
credentialsSecretRef LocalSecretRef |
Admin user able to create the database, in the Restore's namespace. |
ObjectivesSpec¶
ObjectivesSpec are recoverability targets. Each one becomes a condition on the target; when one is missed the controller acts: a stale verification starts a new one, a slow restore takes a fresh full backup (less to replay). Unset objectives are not measured, except maxVerifiedAge, which defaults to 8 days when verification is scheduled.
Appears in: - BackupPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
rpo Duration |
RPO is the most data you accept to lose: the age of the newest restorable point (stream position with PITR, newest full backup without). |
Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
rto Duration |
RTO is the longest restore you accept, compared with the duration of the last passed verification restore. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
maxVerifiedAge Duration |
MaxVerifiedAge is how old the last passed verification may be. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
PITRSpec¶
PITRSpec configures continuous change capture.
Appears in: - BackupPolicySpec - BackupTargetSpec
| Field | Description | Default | Validation |
|---|---|---|---|
enabled boolean |
Optional: {} |
||
window Duration |
How far back point-in-time restore must reach, for example 7d. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
partialInterval Duration |
How often the streamer uploads the segment that is still being written, so recent seconds are restorable. Default 60s. |
Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
PITRStatus¶
PITRStatus reports the change stream.
Appears in: - BackupTargetStatus
| Field | Description | Default | Validation |
|---|---|---|---|
enabled boolean |
Optional: {} |
||
chainBroken boolean |
Optional: {} |
||
brokenSince Time |
Optional: {} |
||
brokenReason string |
Optional: {} |
||
windowStart Time |
Optional: {} |
||
windowEnd Time |
Optional: {} |
||
lastSegment string |
Optional: {} |
||
lagSeconds integer |
Optional: {} |
||
streamerReady boolean |
Optional: {} |
||
replicationDenied string |
ReplicationDenied is set while the target's user may not open replication connections: no change stream, and full backups are logical until it is granted (ADR 0016). ReplicationFix says what to grant. |
Optional: {} |
|
replicationFix string |
Optional: {} |
||
replicationCheckedAt Time |
Optional: {} |
PreviewSpec¶
PreviewSpec configures masked row previews in change summaries.
Appears in: - BackupTargetSpec
| Field | Description | Default | Validation |
|---|---|---|---|
enabled boolean |
Default true for MySQL; Postgres row previews need Logical. | Optional: {} |
|
rows integer |
Rows per table per segment. Default 5. | Optional: {} |
|
logical boolean |
Postgres only: stream a logical (pgoutput) slot for row previews. Retains extra WAL. Default false. | Optional: {} |
|
maxValueLength integer |
Maximum characters per value. Default 64. | Optional: {} |
Progress¶
Progress is reported by movers and restorers.
Appears in: - BackupStatus - RestoreStatus
| Field | Description | Default | Validation |
|---|---|---|---|
stage string |
Optional: {} |
||
bytes integer |
Optional: {} |
||
totalBytes integer |
Optional: {} |
||
updatedAt Time |
Optional: {} |
ReplicaSpec¶
ReplicaSpec is one replica of a store.
Appears in: - BackupStoreSpec
| Field | Description | Default | Validation |
|---|---|---|---|
store string |
Store is the BackupStore that holds the copy. Its encryption recipients must include this store's: the copy is not re-encrypted. |
||
interval Duration |
Interval between copies (default 1h). | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
deleteDelay Duration |
DeleteDelay is how long an object stays in the replica after it is gone from this store (retention, destroy) before the replica deletes it too (default 72h). A run that would delete most of the replica deletes nothing. |
Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
writeFallback boolean |
WriteFallback sends new full backups to this replica while the store cannot be reached; the next copy brings them back. |
Optional: {} |
ReplicaStatus¶
ReplicaStatus reports one replica's copy.
Appears in: - BackupStoreStatus
| Field | Description | Default | Validation |
|---|---|---|---|
store string |
|||
job string |
Job is the running copy Job, if any. | Optional: {} |
|
lastSyncTime Time |
LastSyncTime is when the last copy finished without errors; every backup committed before it is in the replica. | Optional: {} |
|
lastRunTime Time |
LastRunTime is when the last copy finished, with or without errors. | Optional: {} |
|
syncedAt Time |
SyncedAt is the replica's own clock at the end of the last copy (back-fill compares against it). | Optional: {} |
|
lastCopied integer |
Optional: {} |
||
lastCopiedBytes integer |
Optional: {} |
||
lastBackfilled integer |
Optional: {} |
||
pending integer |
Pending objects (and bytes) the last copy could not copy; they are retried on the next run. | Optional: {} |
|
pendingBytes integer |
Optional: {} |
||
deletesHeld integer |
DeletesHeld are objects gone from this store that the replica still keeps (delete delay or brake). | Optional: {} |
|
lastReportKey string |
Optional: {} |
||
message string |
Optional: {} |
Restore¶
Restore is a restore request.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
Restore |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec RestoreSpec |
|||
status RestoreStatus |
RestoreApproval¶
RestoreApproval is the approval a restore waits for.
Appears in: - RestoreSpec
| Field | Description | Default | Validation |
|---|---|---|---|
required integer |
Required is how many people must approve (1 or 2). With 2, at least one is not the requester. | Maximum: 2 Minimum: 1 |
|
agent string |
Agent names the agent that asked for the restore, when one did. | Optional: {} |
|
expires Time |
Expires: an approval not given by then fails the restore (default 24h after creation). | Optional: {} |
|
decisions RestoreDecision array |
Decisions are recorded by tenax-api for the people who approved or rejected. | Optional: {} |
RestoreDecision¶
RestoreDecision is one person's approval or rejection.
Appears in: - RestoreApproval
| Field | Description | Default | Validation |
|---|---|---|---|
by string |
|||
at Time |
|||
approved boolean |
|||
reason string |
Optional: {} |
RestoreDestination¶
RestoreDestination selects the restore mode.
Appears in: - RestoreSpec
| Field | Description | Default | Validation |
|---|---|---|---|
mode string |
Enum: [sandbox new in-place download] |
||
sandbox SandboxDestination |
Optional: {} |
||
new NewDatabaseDestination |
Optional: {} |
||
inPlace InPlaceDestination |
Optional: {} |
||
tables string array |
Only these tables (table-level restore). | Optional: {} |
RestorePlanStatus¶
RestorePlanStatus summarizes the computed plan.
Appears in: - RestoreStatus
| Field | Description | Default | Validation |
|---|---|---|---|
baseBackupID string |
Optional: {} |
||
segments integer |
Optional: {} |
||
targetTime Time |
Optional: {} |
||
bytes integer |
Bytes to fetch from the store. | Optional: {} |
|
dataBytes integer |
DataBytes is what the restored databases occupy after the replay (data plus replay growth): this restore's share of a multi-database sandbox. |
Optional: {} |
|
minRestoreBytes integer |
MinRestoreBytes is the smallest disk this restore fits in: data, staged and replayed changes, the engine's WAL or redo space and a margin (ADR 0030). |
Optional: {} |
|
message string |
Optional: {} |
RestoreSource¶
RestoreSource picks what to restore: a backup ID, a point in time, or the latest restorable state.
Appears in: - RestoreSpec
| Field | Description | Default | Validation |
|---|---|---|---|
backupID string |
Optional: {} |
||
time Time |
Optional: {} |
||
latest boolean |
Optional: {} |
||
latestVerified boolean |
LatestVerified restores the newest backup whose verification passed and that is neither suspicious nor quarantined (ADR 0024). |
Optional: {} |
|
targetNamespace string |
Restore from a target in another namespace (for example into a sandbox requested elsewhere). | Optional: {} |
|
atOrBefore boolean |
AtOrBefore restores the newest point at or before time when no change stream reaches it (the end of the stream, or the newest full backup before it) instead of failing. Multi-database sandboxes use it (ADR 0025). |
Optional: {} |
|
store string |
Store reads the backups and change stream from this BackupStore instead of the target's policy store: a store the target used before, or a copy (ADR 0043). Empty: the policy's store, or for a backupID found only in another store, that store. |
Optional: {} |
RestoreSpec¶
RestoreSpec requests a restore.
Appears in: - Restore
| Field | Description | Default | Validation |
|---|---|---|---|
target string |
BackupTarget name (namespace: source.targetNamespace or the Restore's namespace). | ||
source RestoreSource |
|||
destination RestoreDestination |
|||
runChecks boolean |
Run inventory comparison and target checks after restore. Default true. | Optional: {} |
|
checks string array |
Built-in checks for verification restores. | Optional: {} |
|
reason string |
Optional: {} |
||
requestedBy string |
Optional: {} |
||
approval RestoreApproval |
Approval makes the restore wait for people before anything is planned or touched (ADR 0045). A restore an agent asks for always carries one. |
Optional: {} |
RestoreStatus¶
RestoreStatus reports progress.
Appears in: - Restore
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
plan RestorePlanStatus |
Optional: {} |
||
sourceStore string |
SourceStore is the BackupStore the plan was made from; the restorer reads from it (ADR 0043). | Optional: {} |
|
sandboxName string |
Optional: {} |
||
safetyBackup string |
Optional: {} |
||
databases string array |
Databases this restore owns in a multi-database sandbox (after the prefix). | Optional: {} |
|
copyInto string |
CopyInto is the multi-database sandbox this restore loads into after restoring a physical backup into its own staging sandbox (SandboxName). |
Optional: {} |
|
historyCommit string |
HistoryCommit is the commit that records this restore in the target's history (ADR 0023). | Optional: {} |
|
jobName string |
Optional: {} |
||
attempts integer |
Optional: {} |
||
startTime Time |
Optional: {} |
||
completionTime Time |
Optional: {} |
||
durationSeconds integer |
Optional: {} |
||
checks CheckResult array |
Optional: {} |
||
downloadURL string |
Optional: {} |
||
downloadExpires Time |
Optional: {} |
||
progress Progress |
Optional: {} |
RetainSpec¶
RetainSpec is the tiered retention.
Appears in: - BackupPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
daily integer |
Optional: {} |
||
weekly integer |
Optional: {} |
||
monthly integer |
Optional: {} |
||
yearly integer |
Optional: {} |
S3CredentialsRef¶
S3CredentialsRef points at the S3 credentials secret.
Appears in: - S3Spec
| Field | Description | Default | Validation |
|---|---|---|---|
namespace string |
Optional: {} |
||
name string |
|||
accessKeyIdKey string |
Optional: {} |
||
secretAccessKeyKey string |
Optional: {} |
S3Spec¶
S3Spec configures an S3-compatible bucket. Endpoint and region are required: Tenax has no default provider.
Appears in: - BackupStoreSpec
| Field | Description | Default | Validation |
|---|---|---|---|
endpoint string |
Endpoint URL, for example https://s3.example.com. http:// is allowed for in-cluster test stores. | MinLength: 1 |
|
region string |
MinLength: 1 |
||
bucket string |
MinLength: 1 |
||
pathStyle boolean |
Path-style addressing (bucket in the path instead of the host name). | Optional: {} |
|
credentialsSecret S3CredentialsRef |
Secret with keys accessKeyId and secretAccessKey (names configurable). | ||
disableConditionalPut boolean |
Disable conditional PUT (If-None-Match) for manifests; Tenax then writes and reads back. | Optional: {} |
|
downloadEncryption string |
DownloadEncryption asks the store to encrypt decrypted download objects at rest (volume exports, ADR 0031): AES256 requests SSE-S3 on each object. Default: the bucket's own default encryption. Everything else Tenax writes is encrypted client-side with age. |
Enum: [ AES256] Optional: {} |
Sandbox¶
Sandbox is an isolated, expiring database restored from a backup.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
Sandbox |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec SandboxSpec |
|||
status SandboxStatus |
SandboxDestination¶
SandboxDestination restores into a sandbox.
Appears in: - RestoreDestination
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
Existing Sandbox name; empty creates one. | Optional: {} |
|
ttl Duration |
Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
||
expose boolean |
Expose through the configured exposure provider (Cloudflare Tunnel). | Optional: {} |
|
deleteAfter boolean |
Delete the sandbox when the restore finishes (verification). | Optional: {} |
|
cpu string |
CPU request for this sandbox, for example 500m or 2. Default: the target's spec.sandbox.cpu, then the installation's sandbox.resources.cpu (100m). |
Optional: {} |
|
memory string |
Memory for this sandbox (request and limit), for example 2Gi. Default: the target's spec.sandbox.memory, then the installation's sandbox.resources.memory (256Mi requested, 1Gi limit). |
Optional: {} |
|
sizeLimit string |
Data volume size, for example 20Gi. Default: the target's spec.sandbox.sizeLimit, then the restore's minimum size rounded up to whole GiB (at least 1Gi, ADR 0030). A size smaller than the restore needs is refused. |
Optional: {} |
|
storageClass string |
Use a PVC of this storage class for the data instead of emptyDir. Default: the target's, then the installation's. | Optional: {} |
|
databasePrefix string |
DatabasePrefix renames every restored database to |
Pattern: ^[a-z_][a-z0-9_]*$ Optional: {} |
SandboxMember¶
SandboxMember is one target restored into a multi-database sandbox.
Appears in: - SandboxSpec
| Field | Description | Default | Validation |
|---|---|---|---|
targetNamespace string |
Optional: {} |
||
target string |
|||
databasePrefix string |
DatabasePrefix renames this member's databases to |
Pattern: ^[a-z_][a-z0-9_]*$ Optional: {} |
|
backupID string |
BackupID pins this member to one backup instead of the sandbox's time. | Optional: {} |
SandboxMemberStatus¶
SandboxMemberStatus reports one member of a multi-database sandbox.
Appears in: - SandboxStatus
| Field | Description | Default | Validation |
|---|---|---|---|
target string |
Target is namespace/name. | ||
restore string |
Restore is namespace/name of the member's Restore. | Optional: {} |
|
phase string |
Optional: {} |
||
databases string array |
Databases this member owns in the sandbox (after the prefix). | Optional: {} |
|
backupID string |
Optional: {} |
||
time Time |
Time is the point this member was restored to: the sandbox's time, or the newest point before it. | Optional: {} |
|
message string |
Optional: {} |
SandboxPolicy¶
SandboxPolicy bounds sandboxes created from targets that use the policy.
Appears in: - BackupPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
defaultTTL Duration |
Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
||
maxTTL Duration |
Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
SandboxSource¶
SandboxSource is where the sandbox's data comes from.
Appears in: - SandboxSpec
| Field | Description | Default | Validation |
|---|---|---|---|
targetNamespace string |
Optional: {} |
||
target string |
Optional: {} |
||
backupID string |
Optional: {} |
||
time Time |
Optional: {} |
||
restoreRef NamespacedName |
Restore that fills this sandbox (set when a Restore created it). | Optional: {} |
SandboxSpec¶
SandboxSpec describes an ephemeral database.
Appears in: - Sandbox
| Field | Description | Default | Validation |
|---|---|---|---|
engine string |
Enum: [postgres mysql mongodb] |
||
image string |
Optional: {} |
||
ttl Duration |
Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
||
owner string |
Optional: {} |
||
source SandboxSource |
Optional: {} |
||
sizeLimit string |
SizeLimit is the data volume size. Restores into the sandbox are refused when they need more (ADR 0030). | Optional: {} |
|
storageClass string |
Optional: {} |
||
cpu string |
Optional: {} |
||
memory string |
Optional: {} |
||
expose boolean |
Expose through the configured exposure provider. | Optional: {} |
|
physical boolean |
Physical (Postgres base backup + WAL) restores fill the data directory before the database starts. | Optional: {} |
|
major integer |
Postgres server major for physical restores. | Optional: {} |
|
extensions Duration array |
Extra time added to the TTL by "extend". | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
resetGeneration integer |
Generation counter: bumping it recreates the database pod with an empty data directory. | Optional: {} |
|
members SandboxMember array |
Members restores several targets of the same engine into this one sandbox, each at source.time or the newest point before it (ADR 0025). Empty for a sandbox filled by a single Restore. |
MaxItems: 16 Optional: {} |
SandboxStatus¶
SandboxStatus reports the sandbox lifecycle.
Appears in: - Sandbox
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
namespace string |
Optional: {} |
||
host string |
Optional: {} |
||
port integer |
Optional: {} |
||
database string |
Optional: {} |
||
credentialsSecret string |
Secret in the sandbox namespace holding username and password. | Optional: {} |
|
expireTime Time |
Optional: {} |
||
readyTime Time |
Optional: {} |
||
route string |
Route is how clients outside the cluster reach the sandbox: a tunnel hostname (routeType tunnel, through cloudflared) or host:port (routeType direct, any database client). |
Optional: {} |
|
routeType string |
Enum: [tunnel direct] Optional: {} |
||
restoreName string |
Optional: {} |
||
expiringSince Time |
Optional: {} |
||
observedResetGeneration integer |
Optional: {} |
||
receiverPort integer |
Optional: {} |
||
members SandboxMemberStatus array |
Members reports each member of a multi-database sandbox. | Optional: {} |
SandboxTemplate¶
SandboxTemplate configures sandboxes restored from this target.
Appears in: - BackupTargetSpec
| Field | Description | Default | Validation |
|---|---|---|---|
image string |
Database image for sandboxes, for example postgis/postgis:16-3.4. Default: postgres: |
Optional: {} |
|
sizeLimit string |
emptyDir size limit. Default 2x the backup size, at least 1Gi. | Optional: {} |
|
storageClass string |
Use a PVC of this storage class instead of emptyDir. | Optional: {} |
|
cpu string |
Optional: {} |
||
memory string |
Optional: {} |
||
postRestoreSQL string array |
SQL run in the sandbox after restore, for example masking scripts. | Optional: {} |
ScopeSpec¶
ScopeSpec selects what a backup contains.
Appears in: - BackupTargetSpec
| Field | Description | Default | Validation |
|---|---|---|---|
mode string |
physical (default for Postgres: pg_basebackup) or logical (pg_dump / mysqldump). MySQL is always logical. | Enum: [physical logical ] Optional: {} |
|
excludeData string array |
Tables whose data is not dumped (schema is). Logical mode only. "table" or "schema.table". | Optional: {} |
|
excludeTables string array |
Tables left out entirely. Logical mode only. | Optional: {} |
|
queries ExportQuery array |
Optional: {} |
ScrubSpec¶
ScrubSpec configures archive scrubbing. It is on by default.
Appears in: - BackupStoreSpec
| Field | Description | Default | Validation |
|---|---|---|---|
disabled boolean |
Optional: {} |
||
interval Duration |
Interval between runs (default 24h). | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
maxBytes string |
MaxBytes read per run (default 20Gi): runs rotate through the store, newest unscrubbed backups first. | Optional: {} |
|
minAge Duration |
MinAge skips backups younger than this (default 6h): they were hashed while they were written. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
SecretKeyRef¶
SecretKeyRef points at a Secret, optionally in another namespace.
Appears in: - EncryptionSpec
| Field | Description | Default | Validation |
|---|---|---|---|
namespace string |
Namespace of the secret. Defaults to the namespace of the referencing object (or Tenax's namespace for cluster-scoped objects). |
Optional: {} |
|
name string |
|||
optional boolean |
Optional: {} |
TargetCheck¶
TargetCheck is a SQL check that must return a single true value after a restore.
Appears in: - BackupTargetSpec
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
|||
database string |
Optional: {} |
||
sql string |
TargetCredentials¶
TargetCredentials references the one database user Tenax connects with (ADR 0016).
Appears in: - BackupTargetSpec
| Field | Description | Default | Validation |
|---|---|---|---|
secretRef LocalSecretRef |
Secret with username and password. The user needs read access to everything backed up (Postgrespg_read_all_data + pg_monitor; MySQL SELECT, SHOW VIEW, TRIGGER, EVENT, LOCK TABLES, PROCESS, RELOAD, SHOW_ROUTINE). With replication rights as well (Postgres REPLICATION plus a pg_hba replication rule; MySQL REPLICATION SLAVE, REPLICATION CLIENT) Tenax takes physical backups and streams changes for point-in-time restore; without them it takes logical backups on the policy's schedule and reports what to grant. |
UploadSpec¶
UploadSpec tunes multipart uploads.
Appears in: - BackupStoreSpec
| Field | Description | Default | Validation |
|---|---|---|---|
partSize string |
Part size, default 16Mi. | Optional: {} |
|
concurrency integer |
Parallel parts, default 8. | Optional: {} |
VerifySpec¶
VerifySpec configures scheduled verification restores.
Appears in: - BackupPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
schedule string |
Optional: {} |
||
timeZone string |
Optional: {} |
||
checks string array |
Built-in checks: inventory-matches, schema-matches, row-estimates-within-10pct (any NN), target-checks. | Optional: {} |
|
randomPointInTime boolean |
Also restore to a random point inside the PITR window when streams exist. Default true. | Optional: {} |
VolumeCopySpec¶
VolumeCopySpec schedules encrypted, deduplicated copies of the volumes' files to S3 (ADR 0027): the disaster-recovery layer that survives losing the storage system or the cluster.
Appears in: - VolumeTargetSpec
| Field | Description | Default | Validation |
|---|---|---|---|
disabled boolean |
Disabled turns copies off. | Optional: {} |
|
schedule string |
Cron schedule in the policy's time zone (default daily, at an hour derived from the target). | Optional: {} |
|
keep Duration |
Keep copies this long (default 30d); the newest copy of each PVC is always kept. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
allowLive boolean |
AllowLive copies a PVC straight from the volume when the cluster has no snapshot support. Such a copy is not crash-consistent: files that change while being read are reported. |
Optional: {} |
|
deadline Duration |
Deadline of one copy (default 6h); a copy still running then is stopped and cleaned up. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
VolumeExport¶
VolumeExport is one file or folder of a volume copy, decrypted by a short-lived Job into a short-lived object that presigned links point to (ADR 0031).
Appears in: - VolumeExportList
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
VolumeExport |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec VolumeExportSpec |
|||
status VolumeExportStatus |
VolumeExportList¶
VolumeExportList lists VolumeExports.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
VolumeExportList |
||
metadata ListMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
items VolumeExport array |
VolumeExportResult¶
VolumeExportResult is what the export Job wrote: the commit marker of an export (written last).
Appears in: - VolumeExportStatus
| Field | Description | Default | Validation |
|---|---|---|---|
object string |
Object is the key of the exported data in the store. | ||
size integer |
Size in bytes of the object. | ||
fileName string |
FileName offered to browsers. | ||
contentType string |
ContentType of the object (previews: text/plain or a raster image type). | ||
files integer |
Files in the export. | ||
truncated boolean |
Truncated is set when a preview holds only the start of the file. | Optional: {} |
VolumeExportSpec¶
VolumeExportSpec asks for one file or folder of a volume copy. A short-lived Job that holds the data identity reads the chunks it needs from S3, decrypts them and writes the result to a short-lived object; the API then hands out presigned links to it. The console and the API never hold the data key.
Appears in: - VolumeExport
| Field | Description | Default | Validation |
|---|---|---|---|
target string |
VolumeTarget in the export's namespace. | ||
pvc string |
PVC of the target. | ||
copy string |
Copy ID. | Pattern: ^[0-9]\{8\}T[0-9]\{6\}Z$ |
|
path string |
Path of a file or folder in the copy, relative to the volume root ("" is the whole volume). | Optional: {} |
|
format string |
Format: file (default for a file), zip (default for a folder), tar or preview. | Enum: [file zip tar preview] Optional: {} |
|
ttl Duration |
TTL of the exported object (default 30m, at most 2h); links never outlive it. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
reason string |
Optional: {} |
||
requestedBy string |
Optional: {} |
VolumeExportStatus¶
VolumeExportStatus reports an export.
Appears in: - VolumeExport
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
job string |
Job is the export Job in Tenax's namespace. | Optional: {} |
|
store string |
Store is the BackupStore that holds the object. | Optional: {} |
|
result VolumeExportResult |
Optional: {} |
||
startTime Time |
Optional: {} |
||
readyTime Time |
Optional: {} |
||
expireTime Time |
ExpireTime: the object is deleted then, and no link is handed out after it. | Optional: {} |
|
completionTime Time |
CompletionTime is when the export failed or expired. | Optional: {} |
VolumeRestore¶
VolumeRestore creates a new PVC from a snapshot of a VolumeTarget's PVC.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
VolumeRestore |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec VolumeRestoreSpec |
|||
status VolumeRestoreStatus |
VolumeRestoreSpec¶
VolumeRestoreSpec restores one PVC of a VolumeTarget into a new PVC.
Appears in: - VolumeRestore
| Field | Description | Default | Validation |
|---|---|---|---|
target string |
VolumeTarget in the restore's namespace. | ||
pvc string |
PVC of the target to restore. | ||
snapshot string |
Snapshot to restore (a VolumeSnapshot name); empty uses the newest ready one at or before time (or the newest). | Optional: {} |
|
from string |
From picks the source: snapshot (default, seconds, inside the storage system) or copy (from S3, after losing the storage or the cluster). |
Enum: [snapshot copy] Optional: {} |
|
copy string |
Copy to restore (a copy ID); empty uses the newest copy at or before time (or the newest). | Optional: {} |
|
size string |
Size of the new PVC (default: the larger of the source PVC's request and the snapshot's restore size or the copy's minimum size). A size below what the snapshot or copy restores into is refused (VolumeFits, ADR 0030). |
Optional: {} |
|
time Time |
Optional: {} |
||
toPVC string |
New PVC to create; it must not exist (Tenax never overwrites a volume). | ||
storageClass string |
Optional: {} |
||
reason string |
Optional: {} |
||
requestedBy string |
Optional: {} |
VolumeRestoreStatus¶
VolumeRestoreStatus reports a volume restore.
Appears in: - VolumeRestore
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
snapshot string |
Optional: {} |
||
snapshotTime Time |
Optional: {} |
||
copy string |
Copy restored from S3. | Optional: {} |
|
copyTime Time |
Optional: {} |
||
run string |
Run names the receiver pod and restorer Job of a restore from a copy. | Optional: {} |
|
startTime Time |
Optional: {} |
||
completionTime Time |
Optional: {} |
VolumeSandbox¶
VolumeSandbox is an expiring, read-only SFTP view of a volume copy, restored into a temporary PVC (ADR 0031).
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
VolumeSandbox |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec VolumeSandboxSpec |
|||
status VolumeSandboxStatus |
VolumeSandboxSpec¶
VolumeSandboxSpec restores a volume copy into a temporary PVC of its own namespace and serves it, read-only, over SFTP until its TTL.
Appears in: - VolumeSandbox
| Field | Description | Default | Validation |
|---|---|---|---|
targetNamespace string |
TargetNamespace and Target name the VolumeTarget. | ||
target string |
|||
pvc string |
PVC of the target. | ||
copy string |
Copy ID; empty uses the newest copy at or before time (or the newest). | Optional: {} |
|
time Time |
Optional: {} |
||
authorizedKeys string array |
AuthorizedKeys are the SSH public keys (authorized_keys lines) that may log in. There are no passwords. | MaxItems: 16 MinItems: 1 |
|
ttl Duration |
TTL (default 4h, capped by the sandbox maximum). | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
extensions Duration array |
Extra time added to the TTL by "extend". | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
idleTimeout Duration |
IdleTimeout closes an SFTP connection without traffic for this long (default 15m). | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
expose boolean |
Expose through the configured exposure provider (otherwise: tenax volumes sftp forwards a port). |
Optional: {} |
|
size string |
Size of the temporary PVC (default: the copy's minimum restore size). | Optional: {} |
|
storageClass string |
Optional: {} |
||
owner string |
Optional: {} |
||
reason string |
Optional: {} |
VolumeSandboxStatus¶
VolumeSandboxStatus reports a volume sandbox.
Appears in: - VolumeSandbox
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
namespace string |
Namespace holding the temporary PVC, the SFTP pod and its Service. | Optional: {} |
|
copy string |
Copy restored into the sandbox. | Optional: {} |
|
copyTime Time |
Optional: {} |
||
files integer |
Files and DataBytes of the copy. | Optional: {} |
|
dataBytes integer |
Optional: {} |
||
run string |
Run names the receiver pod and restorer Job that fill the PVC. | Optional: {} |
|
restored boolean |
Restored is set once the PVC holds the copy. | Optional: {} |
|
host string |
Host and Port of the SFTP Service inside the cluster. | Optional: {} |
|
port integer |
Optional: {} |
||
hostKey string |
HostKey is the server's public host key (authorized_keys format), for known_hosts. | Optional: {} |
|
hostKeyFingerprint string |
HostKeyFingerprint is its SHA256 fingerprint. | Optional: {} |
|
route string |
Route is how clients outside the cluster reach the server (see Sandbox). | Optional: {} |
|
routeType string |
Enum: [tunnel direct] Optional: {} |
||
startTime Time |
Optional: {} |
||
readyTime Time |
Optional: {} |
||
expireTime Time |
Optional: {} |
||
expiringSince Time |
Optional: {} |
VolumeSnapshotSpec¶
VolumeSnapshotSpec schedules CSI snapshots of a target's volumes (ADR 0027).
Appears in: - VolumeTargetSpec
| Field | Description | Default | Validation |
|---|---|---|---|
schedule string |
Cron schedule in the policy's time zone (default every 15 minutes). | Optional: {} |
|
keep Duration |
Keep snapshots this long (default 24h); the newest ready snapshot of each PVC is always kept. | Pattern: ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h\|d\|w))+$ Optional: {} |
|
className string |
VolumeSnapshotClass (default: the cluster's default class for the PVC's driver). | Optional: {} |
|
groupClassName string |
VolumeGroupSnapshotClass: when set and the cluster serves VolumeGroupSnapshot, all PVCs of the target are cut at the same instant by the driver (the target must use a selector). |
Optional: {} |
VolumeStatus¶
VolumeStatus reports one PVC of a target.
Appears in: - VolumeTargetStatus
| Field | Description | Default | Validation |
|---|---|---|---|
pvc string |
|||
lastSnapshot string |
Optional: {} |
||
lastSnapshotTime Time |
Optional: {} |
||
readySnapshots integer |
ReadySnapshots kept for this PVC. | Optional: {} |
|
skipped string |
Skipped explains why the PVC is not backed up (for example: it belongs to a database target). | Optional: {} |
|
lastCopy string |
LastCopy is the newest committed S3 copy. | Optional: {} |
|
lastCopyTime Time |
Optional: {} |
||
dataBytes integer |
DataBytes is the size of the files in the newest copy, uncompressed. | Optional: {} |
|
minRestoreBytes integer |
MinRestoreBytes is the smallest volume the newest copy can be restored into. | Optional: {} |
|
copyRun string |
CopyRun is the copy in progress (its sender pod and Job carry this name). | Optional: {} |
|
copyStarted Time |
Optional: {} |
||
copyMessage string |
CopyMessage reports the last copy problem. | Optional: {} |
VolumeTarget¶
VolumeTarget backs up an application's PersistentVolumeClaims with CSI snapshots (ADR 0027).
Appears in: - VolumeTargetList
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
VolumeTarget |
||
metadata ObjectMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
spec VolumeTargetSpec |
|||
status VolumeTargetStatus |
VolumeTargetList¶
VolumeTargetList lists VolumeTargets.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string |
tenax.run/v1alpha1 |
||
kind string |
VolumeTargetList |
||
metadata ListMeta |
Refer to Kubernetes API documentation for fields of metadata. |
||
items VolumeTarget array |
VolumeTargetSpec¶
VolumeTargetSpec selects an application's PVCs.
Appears in: - VolumeTarget
| Field | Description | Default | Validation |
|---|---|---|---|
pvcs string array |
PVCs by name, in the target's namespace. | Optional: {} |
|
selector LabelSelector |
Or PVCs by label. | Optional: {} |
|
policy string |
BackupPolicy (in the target's namespace or Tenax's) whose store, retention and limits apply. | ||
snapshots VolumeSnapshotSpec |
Optional: {} |
||
copies VolumeCopySpec |
Optional: {} |
||
includeDatabaseVolumes boolean |
Back up volumes that belong to a database Tenax already protects (default false: point-in-time recovery of the database is better than a crash-consistent copy of its files). |
Optional: {} |
|
suspend boolean |
Optional: {} |
VolumeTargetStatus¶
VolumeTargetStatus reports the volumes and their snapshots.
Appears in: - VolumeTarget
| Field | Description | Default | Validation |
|---|---|---|---|
phase string |
Optional: {} |
||
message string |
Optional: {} |
||
observedGeneration integer |
Optional: {} |
||
conditions Condition array |
Optional: {} |
||
volumes VolumeStatus array |
Optional: {} |
||
lastScheduleTime Time |
Optional: {} |
||
nextScheduleTime Time |
Optional: {} |
||
lastCopyScheduleTime Time |
Optional: {} |
||
nextCopyTime Time |
Optional: {} |
||
lastCopyRequest string |
LastCopyRequest is the last tenax.run/copy-now annotation value acted on. | Optional: {} |