TAK-OS Orbit Deploy

The problem with Kubernetes automation, one of the problems with Kubernetes automation, because there are many, is that of whose opinion you are going to choose instead of your own. That is to say, which opinionated installation system will you use life-cycle manage your workloads, and how manual will the automation end up being?

I found myself facing this dilema a while back and I realised that each of the deployment automation or life-cycle management systems had features that I liked, but none had no features I hated. Some require the automation to manually initiated, some require you to integrate with a particular CI/CD tool, some need a certain development GUI or management UI... etc etc..

So, I thought, why not take all the features I like, and produce a tool that embodies how I think automation should work?

Orbit Deploy watches namespaced OrbitDeployment custom resources, reads their Kubernetes manifests from Git, renders values and image references, and applies the resulting inventory. After a complete, successful pass it automatically removes previously tracked objects that have disappeared from the source.

Choose your guide

Audience Guide Responsibilities covered
Cluster administrator Cluster administrator guide Installation, controller permissions, tenant access, network access, cluster configuration, upgrades and recovery planning.
Cluster operator Cluster operator guide Monitoring, reconciliation, incident response, ownership, rollback and deployment retirement.
Tenant operator Tenant operator guide Repository layout, manifests, credentials, tokens, images, nested deployments and application lifecycle.
Console user UI user guide Finding deployments, interpreting status, using action buttons and browsing the optional registry.
All roles Configuration and API reference Custom-resource fields, annotations, runtime settings, HTTP endpoints and metrics.
Platform teams TAK-OS integration Companion deployment repositories, self-management, ingress and related operational tools.

The role names describe responsibilities; Orbit does not implement these as built-in UI roles. Kubernetes RBAC controls Kubernetes access. Access to the admin listener must be controlled outside the application.

Start with the administrator guide for a new installation. For an existing cluster, tenant operators can start with the tenant guide and console users can start with the UI guide.

How reconciliation works

flowchart TD
    A[Read OrbitDeployment and credentials] --> B[Fetch and verify selected Git source]
    B --> C[Render and validate complete desired inventory]
    C --> D[Apply objects using shared ownership decisions]
    D --> E[Prune absent tracked objects after successful apply]
    E --> F[Write status and wait before the next run]

Each deployment has one worker. A worker waits approximately 30 seconds after each iteration, so the time between run starts also includes the run duration. Different deployments can reconcile concurrently. The supplied installation runs one controller replica with the Recreate rollout strategy.

Source access and rendering uncertainty abort the pass before workload application. Invalid manifests, API discovery failures and individual Kubernetes rejections are reported per item while valid manifests continue. Any item failure prevents that pass's automatic pruning. Orbit does not wait for application readiness before pruning, and a recent run timestamp is not a readiness check.

Terms and state

Term Meaning
OrbitDeployment, or OD A k8s.tlspu.com/v1 custom resource identifying a source repository, ref and path.
Worker The controller thread reconciling one OD. A running worker does not imply healthy application Pods.
Desired inventory The complete set of rendered, scoped resource identities for a pass.
Managed object An object recorded in an OD's status.managedObjects, with a hash of its desired manifest.
Owner The deployment namespace/name and priority recorded in the shared ownership ConfigMap.
Pruning Removing tracked objects absent from a complete, successfully applied desired inventory.
Cleanup The single best-effort pass after an OD has been deleted.
Portable manifest A namespaced manifest without metadata.namespace; Orbit fills in the OD's namespace.
Unrestricted deployment An OD in kube-system, which may manage cluster-scoped and cross-namespace resources.

Deletion and protection

A live k8s.tlspu.com/no-delete: "true" annotation protects the resource Orbit is about to delete. The legacy spelling k8s.tlspu.com/nodelete is also recognized. This applies during pruning, recreation and deleted-OD cleanup. Normal removal retains a protected resource while releasing its old tracking and ownership.

Deleting a parent OD honors a child OD's live no-delete annotation. The child and its independently managed resources remain. Deleting a Namespace or CRD is different: Kubernetes can cascade to contained resources even when those resources carry no-delete. Protect the Namespace or CRD itself when it must be retained. These annotations govern Orbit's own operations; they are not Kubernetes admission rules and do not prevent a direct kubectl delete.

Existing design and maintenance documents

The pre-existing documents remain available:

Also see the repository README, the detailed offline lint manual, and tracked limitations. Parked embedded-registry/cache work is maintained in INTERNAL_REGISTRY_TODO.md.