Documentation home · Administrator guide · API reference
Orbit's durable reconciliation state lives in Kubernetes. Git working copies, worker activity, referenced-image lists and Prometheus counters live in the controller process/filesystem and are not a replacement for that state.
Installation resources
initial-install/orbit-deploy-crd.yaml defines the namespaced
orbit-deployments.k8s.tlspu.com CRD, serving k8s.tlspu.com/v1.
initial-install/orbit-deploy.yaml supplies:
| Resource | Namespace | Purpose |
|---|---|---|
ServiceAccount orbit-deploy |
kube-system |
Controller identity. |
ClusterRole orbit-deploy-clusterrole |
Cluster | Controller API permissions. |
ClusterRoleBinding orbit-deploy-binding |
Cluster | Bind the controller ServiceAccount to that role. |
Deployment orbit-deploy |
kube-system |
One controller replica, with Recreate rollout. |
Service orbit-deploy |
kube-system |
Admin HTTP listener, port 8080. |
Service orbit-deploy-registry |
kube-system |
Optional embedded registry, port 5000; the Service does not enable the registry. |
OrbitDeployment orbit-deploy |
kube-system |
Bootstrap Git source for self-management. Review or remove it before installation. |
The registry PVC and storage mount are commented out in the shipped manifest. Workload resources subsequently come from each OD's rendered desired inventory; they are not limited to the installation kinds above. Tenant scope rules still apply to every workload.
OrbitDeployment spec and status
Operators supply the source/ref/path, credential Secret name, pause flag and
replacement/image maps in spec. A parent or self-referential source can also
update that spec. Admin pause/unpause writes spec.pause.
The controller stores these fields on the OD:
| Status field | Persisted value |
|---|---|
lastRun |
UTC timestamp of the last successful status write, including a stored failed/paused iteration. |
managedObjects |
Versioned resource key to desired-manifest hash. |
errors |
Affected resource key to single-line diagnostic. Source-level failures are not all represented. |
Tracked keys use <apiVersion>|<kind>|<namespace>|<name>, for example
apps/v1|Deployment|team-a|web. Cluster-scoped targets encode None in the
namespace slot. Portable namespaced manifests are normalized to the OD's
namespace. Keys outside a tenant's allowed scope are discarded.
The CRD has no status subresource or finalizer. Status is written by merge-patch
on the OD; removed map keys are patched with JSON null. Normal status writes
include the original CR UID so a retiring worker cannot overwrite a replacement
CR. Admin clear/purge still have a tracked UID limitation, and Clear can lose
local errors on a failed patch; see
TODO.md before using them during replacement or API outages.
Purge removes the OD's managedObjects and errors status fields after a
successful status patch. It leaves the shared ownership ConfigMap unchanged.
The worker requests a full eligible reapply; cleared/missing tracking also
bypasses matching live receipts after a restart. Reapplication uses normal
ownership and protection rules, and does not treat an unchanged object as a
recreate-on-change deletion.
Kubernetes supplies metadata.creationTimestamp. Orbit parses the dynamic
resource's camelCase field as a timestamp with its timezone, exposes it as the
admin API's created, and uses it for orbit_deploy_seconds_since_created.
Missing values report null and -1. Creation time does not affect ownership,
reconciliation, pruning or watchdog decisions.
Shared ownership ConfigMap
kube-system/orbit-deployment-owners is created when first needed. Its
data["owners.json"] contains JSON mapping canonical identities to owner records:
{
"apps|Deployment|team-a|web": {
"namespace": "team-a",
"name": "web-source",
"priority": 1
}
}
Canonical identity uses the API group without its served version. A core
ConfigMap identity starts with |ConfigMap|; cluster-scoped targets use None.
The store can read legacy versioned keys and merges compatible aliases using
the strongest recorded priority. Cross-group API aliases remain a parked limit.
The ConfigMap is ownership authority. Each transaction reads a fresh snapshot, locks its resource through the owner decision and workload mutation, and synchronously persists ownership using UID/resourceVersion checks. Unrelated transactions run concurrently; conflicting ConfigMap writes merge only when the target claim is unchanged. Monitoring and metrics use independent reads. Uncertain reads or writes block the affected operation. Do not delete this map to bypass an ownership error. The storage format and owner identity are unchanged; see ownership transactions for the implementation.
Metadata on managed resources
CREATE/REPLACE stamps k8s.tlspu.com/applied-manifest with the deployment
namespace/name and desired content hash. For a currently owned object this
receipt recognizes completed writes even if OD status is stale. It does not
grant ownership or deletion authority. Image-token users can also receive the
sanitized k8s.tlspu.com/original-image provenance label.
Protection and priority annotations are described in the reference. Git controls no-update; the live target controls no-delete. Orbit uses freshly read UID/resourceVersion preconditions for deletion. Object writes, ownership writes and OD status writes are separate API requests and do not form one atomic transaction.
Configuration and credentials read from Kubernetes
- Optional
kube-system/orbit-deploy: startup replacement defaults. - Optional
kube-system/orbit-deploy-registries: proxy and TLS policy, refreshed every 60 seconds even with the embedded registry disabled. - Each OD's same-namespace Secret named by
spec.secret: Git and OCI credentials. - Nodes: startup domain/address defaults.
- Live target resources and OD lists: scope, existence, protection, conditionals and lifecycle decisions.
Orbit reads credential Secrets; it does not create workload image-pull Secrets automatically. Namespace and name/priority define ownership; UIDs and resource versions are request preconditions. No durable deleted-OD retry queue is stored.
