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 includes pods from across namespaces that have matching selectors. #5215
Comments
Tested with v1.2.0-pre1-rc4 and kubernetes 1.3.0 ( rancher/k8s:v1.3.0-rancher3). |
@vincent99 looks like UI needs to be fixed. Not sure what calculation it uses for displaying pods under service, but it does include pods with matching selectors cross namespaces. We've put a fix on k8s agent to inject namespace info to the selector of the k8s service that we propagate to Rancher. So this way pods cross namespaces don't join the service. So in the DB, I'm seeing 2 pods behind the service; kubectl also shows only 2 endpoints. Yet UI includes 4 pods |
Version - master 8/2 |
Rancher Version: v1.1.0-dev5
Steps to create the problem:
Create service/rc/pod in 1 namespace.
Create the same set of service/rc/pod (using the same yml file) in another namespace.
When service is listed in UI (from any of the namespace), pods from both the namespaces are listed
cat test1.yml
When ingress is created for this service , lb traffic gets redirected to all the pods ( from both the namespaces).
The text was updated successfully, but these errors were encountered: