Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split network-operator-agent into agent and worker #124

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

p-strusiewiczsurmacki-mobica
Copy link
Contributor

@p-strusiewiczsurmacki-mobica p-strusiewiczsurmacki-mobica commented May 29, 2024

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 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:

  1. Leader-elected network-operator-configurator watches CRDs and creates per node config (NodeConfig).
  2. 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.
  3. 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).
  4. 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.

Signed-off-by: Patryk Strusiewicz-Surmacki <[email protected]>
…ck for LastUpdate value

Signed-off-by: Patryk Strusiewicz-Surmacki <[email protected]>
Signed-off-by: Patryk Strusiewicz-Surmacki <[email protected]>
Signed-off-by: Patryk Strusiewicz-Surmacki <[email protected]>
@p-strusiewiczsurmacki-mobica p-strusiewiczsurmacki-mobica changed the title Split network-operator into operator and agent Split network-operator-agent into agent and worker Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant