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

Register all kubernetes services to the k8s-sync node #63

Merged
merged 1 commit into from
Feb 4, 2019

Conversation

adilyse
Copy link
Contributor

@adilyse adilyse commented Feb 1, 2019

Registering the services with their node information causes issues with
anti-entropy on the clients because the kubernetes services are registered directly with
the servers rather than the clients. So, the clients don't have a record
of the service and deregister them. This causes a register/deregister loop
because the sync process automatically re-registers them.

Given that the sync doesn't register things directly to the clients, it
is more correct to register them to a synthetic node (k8s-sync in this
case) to indicate that they didn't come from a client registration.

Fixes #40 and #59.

Registering the services with their node information causes issues with
anti-entropy on the clients because they are registered directly with
the servers rather than the clients. So, the clients don't have a record
of the service and deregister them. This causes a register/deregister loop
because the sync process automatically re-registers them.

Given that the sync doesn't register things directly to the clients, it
is more correct to register them to a synthetic node (`k8s-sync` in this
case) to indicate that they don't follow the usual path.
@adilyse adilyse requested review from mitchellh, anubhavmishra and a team February 1, 2019 19:57
Copy link
Member

@banks banks left a comment

Choose a reason for hiding this comment

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

LGTM!

This should fix both #40 and #59 as far as I can tell. Can you confirm that @adilyse?

@adilyse
Copy link
Contributor Author

adilyse commented Feb 4, 2019

Yes, this should fix the agents deregistering Kubernetes services.

@adilyse adilyse merged commit ae7c501 into master Feb 4, 2019
@adilyse adilyse deleted the bug/deregister branch February 4, 2019 18:16
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

2 participants