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

Add allow to discover #47

Merged
merged 2 commits into from
Mar 20, 2024
Merged

Conversation

uncleDecart
Copy link
Member

This flag will allow to expose app instance IP address
via metadata server. Could be useful when you have certain
topology and don't want to have static IP routes, i.e.
sidecar applications.

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the idea was to only have setting on the app instance to allow discover. Am I confused?

@uncleDecart uncleDecart force-pushed the add-allow-to-discover branch from 9e91b58 to b541e02 Compare March 14, 2024 11:23
@uncleDecart
Copy link
Member Author

I thought the idea was to only have setting on the app instance to allow discover. Am I confused?

We can move it to app instance level, but this way we can give access granularly, i.e. expose specific port of app instance

@eriknordmark
Copy link
Contributor

I thought the idea was to only have setting on the app instance to allow discover. Am I confused?

We can move it to app instance level, but this way we can give access granularly, i.e. expose specific port of app instance

The initial proposal was to have it both on the network instance and the app instance, which seems overkill.
Only on the network instance means that anybody and everybody can discover, which seems to relaxed.
But only on the app instance should be sufficient for the initial use for the sidecar container, and less to configure.

@uncleDecart uncleDecart force-pushed the add-allow-to-discover branch from b541e02 to ef68bec Compare March 14, 2024 15:43
@uncleDecart
Copy link
Member Author

I thought the idea was to only have setting on the app instance to allow discover. Am I confused?

We can move it to app instance level, but this way we can give access granularly, i.e. expose specific port of app instance

The initial proposal was to have it both on the network instance and the app instance, which seems overkill.
Only on the network instance means that anybody and everybody can discover, which seems to relaxed.
But only on the app instance should be sufficient for the initial use for the sidecar container, and less to configure.

Makes sense, updated it with app instance. We should publish doc on lfedge wiki

Comment on lines 210 to 211
// allow to be discovered by other app instances in the same network
// instance. Default is false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment is reversed; we want to grant the ability for an app instance to discover all the other app instances attached to its network instances.
Unless @gkodali-zededa tells me otherwise.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. @eriknordmark is right.

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix comment. Then ready to go.

This flag will allow app instance to discover other App Instances
connected to its network instances via metadata server.
Could be useful when you have certain topology and don't want
to have static IP routes, i.e. sidecar applications.

Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
Signed-off-by: Pavel Abramov <uncle.decart@gmail.com>
@uncleDecart uncleDecart force-pushed the add-allow-to-discover branch from 459b601 to 303c42a Compare March 20, 2024 08:39
@uncleDecart
Copy link
Member Author

Please fix comment. Then ready to go.

@eriknordmark done

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eriknordmark eriknordmark merged commit bad6aa9 into lf-edge:main Mar 20, 2024
4 checks passed
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.

4 participants