Skip to content

What is Industric Operator

The in-cluster operator that reconciles the autonomic.sh CRDs into running workloads and connects your deployment to the Industric control plane over one outbound WebSocket.

The Industric Operator connects a deployment to the control plane. It runs inside your Kubernetes cluster, authenticates with a deployment-scoped token, and opens one long-lived outbound WebSocket. Discovery, status streaming, I/O, and session audit all flow over that connection.

What Industric Operator is

The Industric Operator is a control-plane client. It discovers and reconciles resources, streams status, and connects interactive sessions.

  • Discover. It watches the autonomic.sh CRDs with controller-runtime informers and pushes a full snapshot on first connect.
  • Stream changes. When an object changes (pod ready, resource crashed), a Delta frame reaches the control plane within a second.
  • Heartbeat. Keep-alives flow on the same connection. If they stop, the dashboard marks the deployment degraded, then offline.
  • Host I/O. When a user attaches to an agent shell, the Industric Operator opens a remote-exec PTY into the agent's container and proxies bytes both ways.
  • Reconcile resources. The Industric Operator turns custom resources into running pods, Services, and Secrets, and reports status back over the wire. See Resources & CRDs.

One agent, one deployment

A deployment is one cluster installation. A deployment token binds 1:1 to a deployment. The control plane refuses a second active connection on the same token, using a last-writer-wins grace window. Two consequences follow.

  • Scaling out means running multiple operator replicas with leader election, not two unrelated tokens against the same cluster.
  • Multi-cluster organizations create one token per cluster and see separate deployments in the dashboard. That keeps staging separate from prod, and eu-west separate from us-east.
No per-resource ACL on the token
Deployment tokens carry no per-resource permissions. They grant the Industric Operator the right to be that deployment. The control plane enforces user authorisation for shell access and role membership, not the token.

Resource discovery

The Industric Operator watches the autonomic.sh CRDs with controller-runtime informers. It reconciles each object into cluster workloads and streams four wire-form resource kinds the dashboard renders.

KindShortReconciles intoStatus surfaces
Agentagagent pod (agentlet + runtime)Pending | Active | Paused | Error | Terminating | Succeeded | Failed
Tooltlon-demand podPending | Ready | Error | Disabled

Add and Update emit delta frames with op upsert; Delete emits op remove. A periodic Snapshot frame (cadence set per organization) backstops the stream, so a dropped Delta is reconciled on the next tick.

Connection lifecycle

The connection states map to dashboard colour.

  • Bootstrap. The manager starts and, when AUTONOMIC_MANAGED=true, reads AUTONOMIC_BASE_URL and its token from AUTONOMIC_AUTH_TOKEN. See Connecting.
  • Handshake. A Hello frame carries the autonomic version, host metadata, and a boot_id.
  • Registration. The control plane binds the connection to the deployment. If another connection already holds it, the older one is evicted (last-writer-wins, closed with reason evicted by newer connection).
  • Discovery. The initial Snapshot lands in the dashboard.
  • Steady state. Deltas, heartbeats, audit, I/O, and pod-control frames flow both ways.
  • Disconnect and reconnect. Capped exponential backoff. The deployment goes degraded after 90 seconds and offline after 5 minutes of heartbeat silence.

Boundaries

The Industric Operator does not host agents itself, store long-term history, or fan out across multiple deployments from one instance. Durable state lives in the control plane. Each instance belongs to one deployment.