Sonic Operator Architecture
sonic-operator is a Kubernetes operator that onboards and manages bare-metal network switches.
Components
- Controller manager reconciles CRDs and maintains status.
- Switch agent runs on the device and exposes gRPC operations.
- Provisioning server serves ZTP scripts and ONIE artifacts over HTTP.
High-level flow
- A
Switchcustom resource represents a physical switch and its endpoint. - The controller connects to the agent and observes device state.
- The controller creates/updates interface resources based on discovery.
- Desired admin state is enforced on the device.