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

Outside access on EKS with CNI #272

Closed
rafaelalmeida opened this issue May 7, 2019 · 2 comments
Closed

Outside access on EKS with CNI #272

rafaelalmeida opened this issue May 7, 2019 · 2 comments

Comments

@rafaelalmeida
Copy link

rafaelalmeida commented May 7, 2019

I have an EKS cluster with CNI plugin, so the IPs that EKS assigns to my pods are IPs from Elastic Network Interfaces, which are in the same subnet as my other EC2 instances. If the Security Group allows this (which mine does), this means that I can access a pod via IP straight from an EC2 instance outside the cluster.

With such a setup, would it be possible to have just one or two bootstrap servers, accessible in a "stable" (i.e. NodePort or DNS) way from outside the cluster, and expose the other brokers just from their plain IPs? I assume some advertised listener configuration would be necessary, but is it feasible/a good idea?

Related question: Are the outside-[0,1,2].yml services one per broker? I.e. this means I would have to create more services if I were to use more than three brokers? Will the advertised listeners work out-of-the-box in this case?

@solsson
Copy link
Contributor

solsson commented May 7, 2019

I'm sure it would be possible. Pods can figure out their listener addresses using arbitrary logic.

Maybe you'll want #187?

Are the outside-[0,1,2].yml services one per broker? I.e. this means I would have to create more services if I were to use more than three brokers?

Correct.

Will the advertised listeners work out-of-the-box in this case?

Off the top of my mind I think they will work up to 10 brokers.

@rafaelalmeida
Copy link
Author

@solsson #187 makes total sense, thanks a lot, will try running a test.

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

No branches or pull requests

2 participants