in this PR reconciler interfaces from #112 were renamed to Adapters and are now contained in separate packages. Additionally new pod Agent was added that uses the adapters to configure the netwokring on the host. Based on gradual rollout #110, the workflow looks currently like this:
Leader-elected network-operator-configurator watches CRDs and creates per node config (NodeConfig).
On each node network-operator-worker pod watches for NodeConfigs and if there is node config created for the node it serializes it and sends it via gRPC (localhost:50042 by default) to the agent.
Agent (whcihc can be run as a pod or as standalone binary) is a gRPC server - it gets the config from the worker and configures networking, and does perform configuration-specific healthchecks (e.g. checks if FRR is active).
After worker gets success response form the agent it's go on with common connectivity healthchecks and sets the NodeConfig resource provisioning status.
Update 02.10.2024: rebased to current gradual-rollout implementation.
This PR introduces changes discussed in #121
Based on #110 and #112.
in this PR reconciler interfaces from #112 were renamed to
Adapters
and are now contained in separate packages. Additionally new podAgent
was added that uses theadapters
to configure the netwokring on the host. Based on gradual rollout #110, the workflow looks currently like this:network-operator-configurator
watches CRDs and creates per node config (NodeConfig
).network-operator-worker
pod watches forNodeConfigs
and if there is node config created for the node it serializes it and sends it via gRPC (localhost:50042
by default) to theagent
.Agent
(whcihc can be run as a pod or as standalone binary) is a gRPC server - it gets the config from theworker
and configures networking, and does perform configuration-specific healthchecks (e.g. checks if FRR is active).worker
gets success response form theagent
it's go on with common connectivity healthchecks and sets theNodeConfig
resource provisioning status.Update 02.10.2024: rebased to current gradual-rollout implementation.