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

Service collision issue #161

Open
jp-gouin opened this issue Dec 17, 2024 · 0 comments
Open

Service collision issue #161

jp-gouin opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working priority/1 virtual-kubelet all virtual kubelet related issues

Comments

@jp-gouin
Copy link
Collaborator

In shared mode, we can run into a collision issue with our actual service management.
#154 Initial networking support for shared mode
The PR does the following:
• Syncs all the services created in the virtual cluster to the host cluster
• Creates a coredns service for each virtual cluster
• In k3k-kubelet, it injects networking information to each pod created including:
• connection information to the virtual cluster API.
• DNS information to the coredns service created in the second point.

Problem:
Service IP and NodePort are first provisioned in the virtual cluster and then replicated into the host clusters. But the IP or the NodePort might be already taken on the host.

One possibility is to modify the behavior of coredns, to read the IP from a label on the sync service instead of the service IP

According to @galal-hussein analysis , coredns accepts custom plugins, theoretically we can create a k3k plugin which is identical to the default kubernetes plugin with slight modification to the behavior, i.e reading the IP from a custom label/annotation instead of the spec.clusterIP field

@jp-gouin jp-gouin added bug Something isn't working virtual-kubelet all virtual kubelet related issues priority/1 labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority/1 virtual-kubelet all virtual kubelet related issues
Projects
None yet
Development

No branches or pull requests

1 participant