Vesta Backup

Install Vesta on OKD

Review the installed distribution and operating profile before installing or upgrading. Profile changes are outside normal reconfiguration; license validity never changes the configured credential namespace.

This kit installs the Community Edition for one organization. It includes the backend, web UI, KubeVirt agent, offline image transport, namespaced manifests, preflight tools and customer guides. The full delivery profile additionally includes the PostgreSQL image and dedicated database deployment. The separately identified customer-postgresql profile supplies only the three application images; follow customer database preparation and skip database deployment. It does not install or upgrade OKD, HCO, KubeVirt, CDI, storage drivers, an S3 service or an identity provider. Supply those site services first; do not change cluster-wide infrastructure as an implicit application installation step.

Use the installation and acceptance checklist to record this actual installation and its acceptance on disposable data.

For an existing installation, follow the release-specific upgrade and recovery guide. Verify the actual previous schema head; earlier heads require the intervening migrations to backup_admission_pause. An installation already at that head uses the reviewed same-schema image rollout without replaying a migration Job. Do not repeat the fresh-database, fresh-migration, initial-password or agent-enrollment stages below. Preserve the accepted site file, accounts, policy, keys, journal and stable agent identity. Older starting versions need the separately identified transition in that same guide.

For a fresh 6.0.81 Community candidate qualification, record the three exact image digests from the release manifest and use an empty disposable installation. For a public installation, also verify the signed checksums and accompanying sources. 6.0.73-install9 is withheld because its backend cannot start; never deploy it or choose it as a rollback target. The application images already include the Vesta 1.2.0 light/dark appearance and locally served API documentation. Customer appearance and trusted public license keys are optional, separate configuration inputs; neither is a fresh installation prerequisite.

New site defaults use resource_prefix: "vesta", application namespace vesta and agent namespace vesta-agent. Choose these before installation. Prefix is immutable thereafter; an omitted prefix means legacy vnbui, not a request to rename existing resources. Keep configured Secret references synchronized with the new vesta-* Secret examples.

Prepare the site

Use an authenticated oc session with permission to create the namespaced resources in the rendered manifests. The workstation must already have approved offline copies of Python 3.11 or newer, oc with Kustomize support, Bash/jq for preflight, and skopeo for offline image import. No source checkout, compiler or development environment is needed.

The included images require Linux x86-64 (amd64) nodes for application, agent and restore-worker pods. Keep the application namespace separate from every protected-VM and restore namespace: agent Job/Secret permissions must never reach database/bootstrap or application credentials. The renderer refuses that overlap. Use namespace scheduling policy if the cluster has mixed architectures.

Before applying resources, arrange:

  • HCO/KubeVirt/CDI backup and CBT APIs: backup.kubevirt.io/v1alpha1 backup/tracker and export.kubevirt.io/v1beta1 export, with CBT enabled for the nominated VMs. The tested baseline is HCO 1.18.1, KubeVirt 1.8.4 and CDI 1.65.0; site/provider acceptance still uses that site's actual configuration. The shipped read-only preflight identifies missing interfaces and settings. Missing requirements must be installed or updated before protection is enabled.
  • An application namespace, protected-VM namespaces, and explicit restore destination namespaces. The kit neither creates customer VMs nor selects all namespaces implicitly. Set agent_namespace for the agent application, source_namespaces for its permission ceiling, selected_namespaces for its default protection subset (including [] for none), and restore_namespaces for destinations. Inspect every rendered RoleBinding before applying. Keep the agent namespace separate from source/restore namespaces for new installs; vm_namespace remains the stable legacy identity anchor.
  • A PostgreSQL database with separate owner/migrator and restricted runtime login roles. The owner needs CREATE in the empty public schema. The runtime must not own application objects or have SUPERUSER, BYPASSRLS or role-creation privileges. The migration stage installs the runtime grants.
  • Storage classes/capacity for durable agent journals, backup scratch and fresh restore disks. Scratch is Filesystem and must meet the selected access mode; disk-mode/CSI/SCC requirements for restore are in the restore guide.
  • Routes/DNS, site-issued serving certificates and trust bundles. Backend serving TLS must match api_host; agent serving TLS must match ${RESOURCE_PREFIX}-agent.${AGENT_NAMESPACE}.svc. Trust must cover API, agent, PostgreSQL, S3 and configured OIDC servers. Never disable verification to work around a trust error.
  • Network access for router to UI/API, UI to API, API to PostgreSQL/agent/S3/SSO, agent to API/Kubernetes/export/S3, restore worker to S3, and DNS. The kit does not replace existing namespace-wide network policy or install a monitoring stack.

Verify and import the kit

Receive the release manifest/checksum through your trusted release channel. Checksums detect changes; they do not establish publisher identity by themselves. From the extracted release directory:

python3 install/kit.py verify --source .
python3 install/kit.py import-images --source images --registry onsite.example.org/vesta

Keep all printed digest-pinned image references and verify the manifest profile. For full, there are four: the three application references go in site.json, and postgres goes in private postgres.json for dedicated database deployment. For customer-postgresql, there are exactly three supplied images; there is no bundled database or hidden image fallback. The customer provisions the compatible service and controls any separate upstream image acquisition/import. Do not create a bundled postgres.json or change the accepted endpoint for this profile. Create a private copy of install/config.example.json, substitute those references and the site namespaces, DNS names, storage classes/sizes and Secret names. Leave ui_aliases: [] for a fresh site; it records additional trusted UI hostname origins during later hostname changes. Place it outside the verified kit, for example /private/vesta/site.json. Do not put Secret values in this file. The placeholder configuration is deliberately invalid. Leave browser telemetry disabled unless the site has explicitly configured its own collection endpoint.

Provision private inputs

Use the key inventory in secrets.example.yaml; never apply its invalid namespace placeholders unchanged. Provision values through the site secret manager or private mode-0600 files, not shell arguments, Git or logs.

Input Required keys Where
Migration owner DATABASE_URL with verified PostgreSQL TLS Application namespace, migration Job only
Runtime login DATABASE_URL with verified PostgreSQL TLS Application namespace
Application JWT_SECRET, VNBUI_ENCRYPTION_KEY, ORCHESTRATOR_TO_AGENT_KEY Application namespace
Initial admin password Application namespace
Backend serving TLS tls.crt, tls.key Application namespace
Agent serving TLS tls.crt, tls.key Agent namespace
Agent registration REGISTRATION_KEY, KEYSTORE_IDENTITY, ORCHESTRATOR_API_KEY Agent namespace, after API setup
Server trust ca.crt Application and agent namespaces

VNBUI_ENCRYPTION_KEY is a generated Fernet key; retain it in recovery custody. The initial admin password needs at least eight characters, lowercase, uppercase, a digit and a character from !@#$%^&*(),.?":{}|<>. A URL-safe random token alone does not necessarily satisfy that policy. The backend-to-agent shared key and agent ORCHESTRATOR_API_KEY must agree. Keep the stable keystore identity with the durable journal; losing either can prevent recovery of existing work.

The explicit mtls: null profile uses scoped API keys over verified HTTPS. For client-certificate mode, set mtls to distinct Secret names backend_client_ca, backend_client_tls, and agent_client_ca. The CA Secrets hold the enrolled client-identity issuer; backend_client_tls holds the backend's client keypair. These do not replace the site-issued serving certificates or outbound server trust bundle. An inbound client CA need not trust an agent's serving certificate. Provision the complete selected profile; the renderer refuses incomplete inputs.

Apply the stages

Run the read-only preflight and review the report locally. Then check for fresh target collisions before the first apply, choosing the command for the selected deployment profile:

# full, when installing the included dedicated PostgreSQL stage:
python3 install/check_fresh_target.py --config /private/vesta/site.json --postgres-config /private/vesta/postgres.json
# customer-postgresql, with an existing customer-provisioned service:
python3 install/check_fresh_target.py --config /private/vesta/site.json

This read-only cluster guard requires namespace access and refuses any existing planned product resource; precreated namespaces and customer-managed Secrets may exist. It neither locks a namespace nor checks database schema emptiness. The fresh schema Job separately refuses a populated public schema. For a customer service, run the distinct owner Job's read-only --check-prerequisites procedure in the profile guide before schema changes: PostgreSQL 17.x, plpgsql, writable primary with default_transaction_read_only=off, separate restricted roles, explicit TCP host and verify-full/custom-CA TLS must pass.

A collision means stop and use the upgrade guide, not overwrite the installation. This check is not a namespace lock; coordinate with other operators. Render each stage to a new private directory, inspect it, and apply in order. First initialize APP_NAMESPACE, AGENT_NAMESPACE and RESOURCE_PREFIX from /private/vesta/site.json using installed naming. The fresh example resolves to vesta / vesta-agent with prefix vesta; use the actual chosen values rather than renaming existing resources:

For full dedicated database deployment, first complete the PostgreSQL stage, using that same private postgres.json. For customer-postgresql, omit --postgres-config and the dedicated-database stage; the customer supplies the already prepared service. Preserve the inherited verified kit profile (an explicit contradictory site profile is refused). Continue below only after the selected database prerequisites pass.

python3 install/render.py --config /private/vesta/site.json --stage migrate --output-dir /private/vesta/migrate
oc kustomize /private/vesta/migrate
oc apply -k /private/vesta/migrate
oc -n "$APP_NAMESPACE" wait --for=condition=complete "job/${RESOURCE_PREFIX}-fresh-schema" --timeout=30m

python3 install/render.py --config /private/vesta/site.json --stage api --output-dir /private/vesta/api
oc kustomize /private/vesta/api
oc apply -k /private/vesta/api
oc -n "$APP_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-backend" --timeout=10m
oc -n "$APP_NAMESPACE" rollout status "deployment/${RESOURCE_PREFIX}-frontend" --timeout=10m

The fresh migration stage refuses a populated schema. Never run it as an upgrade or combine it with restore-grants, which is only for a separately restored, exact-schema database. API startup does not perform schema migration.

Sign in and follow first configuration. Obtain the scoped registration key from the running API and finish the private agent Secret before rendering and applying the agent stage in the same way. Wait for the agent Deployment and its authenticated registration/heartbeat. A Ready pod alone does not establish eligibility for backup.

No stage requires a node/cluster restart. If an apply or readiness check fails, stop at that stage and use diagnostics. Do not delete PVCs, reset credentials or rerun a fresh migration to force progress.

Initial password convenience and completion report

Optionally generate the initial administrator Secret input with an exclusive mode-0600 output file. The generated password always meets the application policy:

python3 install/bootstrap_admin.py generate --config /private/vesta/site.json --output /private/vesta/admin-secret.json
oc create -f /private/vesta/admin-secret.json
python3 install/bootstrap_admin.py report --config /private/vesta/site.json

Use generation only before fresh installation. The report prints URL, username and the exact oc get secret ... | base64 --decode retrieval command; run that privately. Existing administrators are preserved by API bootstrap on restart. Retain the input in private custody and never publish its contents.

Journals, scratch and later changes

journal_size: 1Gi is an initial journal/identity budget, not backup retention. Size it for pending attempts and recovery journals, monitor usage and retain it across agent upgrades. scratch_size: 64Gi is only an example per-source staging budget: size each source's Filesystem scratch for the sum of simultaneously staged protected disk bytes plus overhead. Full backup seed and changed-block incremental processing use scratch; release/recovery lifecycle manages that workspace. There is no generic local-copy retention setting for KubeVirt.

Each explicit source gets its own ${RESOURCE_PREFIX}-scratch PVC in that source namespace. RWX is the normal multi-node choice. RWO can be mounted by multiple pods only when the storage driver and placement permit the same node: it is not a shared multi-node scratch service. With RWO, keep max_concurrent_backups: 1 (the installer default and required ceiling), enforce one active staging operation per PVC and colocate source/export/utility consumers on one compatible node using site scheduling policy. If this cannot be guaranteed, provision Filesystem RWX before enabling protection; reducing API concurrency alone does not pin nodes.

Native KVM sources use the separately packaged native agent, host journal and native disk processing; these KubeVirt scratch PVC settings do not apply there. Source type and actual VM selection belong in the UI after enrollment. An admin may narrow selections inside the installer-granted ceiling; UI edits cannot create namespace RBAC grants. For public hostname or ceiling changes, follow the reconfiguration runbook.