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 into operator and agent #124

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

Conversation

p-strusiewiczsurmacki-mobica
Copy link
Contributor

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.

Signed-off-by: Patryk Strusiewicz-Surmacki <patryk-pawel.strusiewicz-surmacki@external.telekom.de>
Signed-off-by: Patryk Strusiewicz-Surmacki <patryk-pawel.strusiewicz-surmacki@external.telekom.de>
Signed-off-by: Patryk Strusiewicz-Surmacki <patryk-pawel.strusiewicz-surmacki@external.telekom.de>
Signed-off-by: Patryk Strusiewicz-Surmacki <patryk-pawel.strusiewicz-surmacki@external.telekom.de>
Signed-off-by: Patryk Strusiewicz-Surmacki <patryk-pawel.strusiewicz-surmacki@external.telekom.de>
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.

None yet

1 participant