Vesta Backup

Change installation configuration

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 procedure is for an authorized cluster administrator or deployment automation. Use the same private site.json and kit renderer used for installation. The backend does not manage Kubernetes RBAC. Do not run migrate, restore-grants, bootstrap-password generation, database initialization or credential/key/agent identity reset during this procedure. The single-replica Recreate deployments briefly restart; schedule a maintenance window. This is not a zero-downtime or parallel-API procedure.

Use the accepted prefix, not the latest fresh default: initialize RESOURCE_PREFIX as described in installed naming.

Prepare and review

  1. Retain the accepted site config as site.previous.json; edit a private copy site.proposed.json. Supported changes are ui_host, ui_aliases, api_host, source_namespaces, selected_namespaces, restore_namespaces, the appearance projection, the public license-key projection, transfer profile/API budget (kubevirt_transfer_profile, kube_api_qps, kube_api_burst), future agent-key candidate lifetime (agent_key_rotation_ttl_hours, 1–168 hours), and new secrets.backend_tls / secrets.trust names. All identity, image, credential, database, storage and resource settings stay fixed. resource_prefix is immutable; preserve its value or omission (legacy vnbui). Namespaces and existing resource identities are never renamed by this procedure. Legacy vm_namespace remains the identity anchor; changing the agent namespace needs a separately reviewed migration. Preserve the existing journal and registration identity. When changing ui_host, put the previous primary and all previous ui_aliases in the proposed ui_aliases list (up to 16 distinct exact hostnames; no wildcards or URL syntax). These trusted browser origins stay enabled after acceptance, so old/new addresses remain fully usable together.
  2. Precreate each added namespace. For a new source, preprovision its matching ${RESOURCE_PREFIX}-scratch Filesystem PVC with the site's storage class, size and access mode; a restore-only destination does not require this source scratch claim. No PVC is created, resized, deleted or moved by reconfiguration. In a newly added restore destination, the transaction creates ${RESOURCE_PREFIX}-restore-worker only when absent, before its RoleBindings. An existing account must match the rendered product ownership label, have no controller owner and not be terminating; it is retained as a UID-checked prerequisite, never overwritten or deleted. An unrelated same-name account stops planning for administrator review. The agent ServiceAccount is never changed by this workflow. The agent policy and actual RoleBindings must both allow a namespace. Removing a source or restore scope revokes its agent RoleBinding; leftover Roles/PVCs are retained without that grant. Review other manually granted bindings separately.
  3. Arrange both old and new DNS records. For API rename, provision a new named Secret whose certificate SANs cover both API names. The new trust Secret must retain every issuer still needed by old/new API, agent, PostgreSQL, S3 and SSO paths. Provision it in both application and agent namespaces. Keep previous Secrets untouched. For UI edge TLS, arrange router certificates covering both hostnames; this tool does not install router certificates.
  4. Update the SSO client to permit both old and new callback/redirect URLs and allowed origins. OIDC callback URLs are derived from the request hostname and forwarded HTTPS scheme, so register /api/v1/auth/oidc/callback for each old/new browser/API hostname actually used. Site config does not rewrite stored OIDC settings. Keep old entries until acceptance. An existing literal FRONTEND_URL=https://OLD_UI_HOST[/] is updated to the new primary with the same trailing slash; relative / remains origin-relative. A Secret/ConfigMap reference or custom URL for this variable requires administrator review and adoption before hostname reconfiguration, rather than guessing its value.
  5. Fence scheduled/manual dispatch, review running/uncertain backup and restore attempts, and wait for work to settle. Do not start another API instance: the API process owns schedulers and workers. Coordinate one operator, pause GitOps/self-heal or other automation that writes these same objects, and keep the private transaction directory on durable storage. The procedure requires a single configuration writer; it does not lock out other Kubernetes clients.

From the extracted kit root, with an authenticated oc session:

python3 install/reconfigure.py plan --previous /private/vnbui/site.previous.json --config /private/vnbui/site.proposed.json --state /private/vnbui/change-001 --ca-file /private/site-ca.crt

Review transaction.json, both saved configs and the api/ and agent/ Kustomize overlays. Planning validates values and checks actual existing resource configuration/UIDs. It refuses drift, stale resources, collisions and unsupported changes. Deployment environment variables, volumes and mounts added by the site are retained by name/path while only renderer-owned differences are applied. Extra containers are refused. Existing owned environment values and Secret references must still match the accepted site configuration: additive adoption never silently replaces an agent identity, API key reference or serving endpoint. If an older GitOps install has a custom technical hostname, set the same stable agent_id in both private configs before planning; retain its journal. If its owned Secret-reference layout cannot be represented by the renderer, stop for a separately reviewed adoption rather than rewriting live identity/credential inputs merely to satisfy the tool. Review the saved desired objects in transaction.json, which include retained site additions; raw overlays show canonical renderer output, while the transaction contains the actual coordinated mutation targets. No private Secret contents are read or printed. Secret UID/resourceVersion metadata is captured and must remain unchanged between plan and apply. New certificates/trust are operator inputs; independently verify their SANs, expiry and full trust chain before declaring external readiness. Namespace policy includes the complete source ceiling, default selection, restore ceiling and per-source scratch map. An empty selected list deliberately protects nothing.

Existing custom GitOps installations

First check that the accepted site configuration represents the actual owned resource names, credential references and mounted inputs. Additive Deployment support does not adopt a different resource contract. Do not invent a previous site config, add registration credentials or reset identity to satisfy the CLI.

Custom installations may use different Route names, credential references or versioned immutable ConfigMaps instead of the renderer's fixed inputs. Inspect the live renderer-owned references even when a Deployment has no rendered change: the current planner can omit that consumer check. A CURRENT input marker proves the active references were reconciled; it does not prove that an independently rendered ConfigMap is actively mounted. If actual references do not match the accepted site configuration, use the installation's existing reviewed GitOps workflow until explicit adoption is supported. Do not apply the stock plan or rewrite credentials to force a match.

For a hostname-only change in such an installation:

  1. Capture current resources, image pins, mounted input revisions, identity and custody. Prepare the old/new DNS, dual-name serving certificate, full trust chain and required SSO callback/origin allowlists. Retain old inputs. Stage new immutable inputs before activation and verify their actual UID/revision.
  2. Fence dispatch with a fresh admission revision and confirm work is settled. Keep GitOps as the sole configuration writer; do not concurrently apply stock renderer output. Preserve the established API/UI-before-agent rollout order.
  3. Add the new Routes and retain the old ones. Update the primary browser origin while retaining trusted aliases. Update the existing literal FRONTEND_URL, the agent's orchestrator URL and frontend upstream TLS server name to the reviewed new addresses. Preserve the internal upstream, CA verification, images, namespace policy, credentials, stable agent identity, journal, database and storage.
  4. Reconcile every active workload's exact input metadata and require a current rollout. Perform the authenticated browser, SSO, agent and preservation checks below at both old and new names. Restore dispatch using a fresh admission revision only after acceptance; keep schedules and automatic cleanup at their recorded values.

Record the actual GitOps revisions and observations. This exercises the staged operating procedure; it does not qualify the stock CLI's plan/apply/accept or rollback commands. On failure, revert only the recorded configuration delta through GitOps while dispatch remains fenced, then verify old paths and custody. Do not restore the database or reset identities for a hostname rollback.

Apply, verify and accept

python3 install/reconfigure.py apply --state /private/vnbui/change-001 --quiesced --external-ready

This applies only coordinated application/policy/RBAC configuration. ALLOWED_ORIGINS is rendered directly from the primary plus explicit ui_aliases; acceptance does not silently remove an origin. Existing Routes remain; candidate Routes use a deterministic suffix recorded in the transaction. Mounted Secret/ConfigMap references are reconciled using reconcile_inputs.py; readiness alone cannot prove mounted inputs were reloaded. The command actually resolves DNS and verifies CA/hostname TLS and HTTP 200 for each UI hostname / and same-origin /api/v1/version, plus API /health and /ready; it checks the old endpoints before changing resources, both old/new endpoints after apply, and old endpoints after rollback. --ca-file supplies the local PEM trust bundle; omitting it uses system trust. Both old and new issuers must be trusted during transition. No TLS verification bypass exists. --external-ready acknowledges operator preparation, rather than replacing these probes. An error or interrupt attempts rollback and checks the restored configuration and input revisions. A process killed before cleanup can be recovered with the explicit rollback command below. Never discard an incomplete transaction.

Before resuming dispatch, use the new and old names from the real browser and agent networks. Require verified TLS (never -k), UI load, API health/readiness, password login, SSO login/callback/logout where configured, existing administrator access, and the same authenticated agent identity with a fresh heartbeat and a backend-to-agent verified TLS check. Verify inventory includes only the selected sources and the restore picker respects its ceiling. A Ready pod alone is not acceptance. These authenticated/external checks are performed by the operator; --paths-verified records that explicit acceptance, not an automated test result.

python3 install/reconfigure.py accept --state /private/vnbui/change-001 --quiesced --paths-verified

Acceptance repeats resource/input and endpoint checks without changing the configured origins. Retain the proposed config as the next accepted site.json, the transaction and previous config in private custody. Old Routes, certificates, trust and SSO/DNS entries remain until the operator separately confirms all callers switched. To retire a browser origin later, use a separate reconfiguration with unchanged ui_host and remove only the confirmed-retired hostname from ui_aliases. The list describes trusted browser origins, while retained Routes remain separate Kubernetes resources; copying a config to a fresh installation does not provision Routes/DNS/certificates for historical aliases automatically. Route cleanup is deliberately a separate reviewed admin action. Do not remove old certificate SANs while an old Route or agent caller still needs them.

Roll back and verify

python3 install/reconfigure.py rollback --state /private/vnbui/change-001 --quiesced

Require rolled-back-verified, then repeat the old UI/API/login/SSO/agent tests. Restore any separately changed identity-provider client or stored OIDC setting to its recorded value. The captured prior Deployment also restores its previous FRONTEND_URL and site additions. Keep both DNS/certificate sets until rollback has been verified. The command restores captured coordinated config, restores removed namespace bindings, removes transaction-created Routes, Roles, RoleBindings and restore-worker ServiceAccounts with UID preconditions, and reconciles input revisions. Existing accounts and independently provisioned scratch PVCs remain untouched. It never restores a database or resets users, passwords or agent keys. If a resource UID changed, or a create response was lost before its UID could be recorded, it restores independent prior resources where their identities still match, then records rollback-incomplete instead of deleting a potentially unrelated object. Inspect that exact object's UID and configuration in the private transaction; keep maintenance fencing until an administrator resolves the ambiguity and reruns rollback successfully. A failed rollback is not recovery.

The 6.0.57-install3 tooling also corrects a 6.0.56 rollback verification false negative: Kubernetes can omit an empty metadata.annotations map after replacement, while the saved transaction still contains {}. The corrected check treats only those empty metadata annotations as equivalent; nonempty annotations, resource identity and configuration differences still fail. If an existing transaction stopped at rollback-incomplete for this reason, keep dispatch fenced and run the same rollback --state ... --quiesced command above from the verified corrected kit against the original transaction directory. Retain that directory and let the shipped tool update its state; do not start another plan/apply or manually edit the saved transaction or recorded outcome. Require rolled-back-verified and the same old-path and custody checks before resuming. This resumes configuration recovery without changing application images, schema, users, keys or agent identity.