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

Support multiple clusters #28

Closed
cjimti opened this issue Nov 28, 2018 · 2 comments
Closed

Support multiple clusters #28

cjimti opened this issue Nov 28, 2018 · 2 comments
Labels
enhancement New feature or request
Projects

Comments

@cjimti
Copy link
Member

cjimti commented Nov 28, 2018

In response to #24 I am opening up this issue to support multiple cluster forwarding.

@cjimti cjimti added the enhancement New feature or request label Nov 28, 2018
@cjimti cjimti added this to the 1.5.x milestone Nov 28, 2018
@cjimti cjimti added this to To Do in 1.5.x via automation Nov 28, 2018
@cjimti
Copy link
Member Author

cjimti commented Dec 4, 2018

@mrumpf I have a work in progress version of multiple cluster support in the branch 1.5.x.

Examples

Where cluster1 and cluster2 are kubectl contexts:

Forward mynamespace from cluster1 (as .cluster.local) and cluster2 as .cluster.cluster2):
sudo kubefwd svc -n mynamespace -x cluster1 -x cluster2

Forward somenamespace and mynamespace from cluster1 (as .cluster.local) and cluster2 as .cluster.cluster2):
sudo kubefwd svc -n mynamespace -n somenamespace -x cluster1 -x cluster2

Omitting the -n will use the default namespace from the first context.

Since this use case diverges a bit from the original rationale for kubefwd, I hope to keep it backward compatible. I see how this feature could be useful for testing but I think it would need quite a bit of work to find service names for federated clusters.

If anyone has an opinion on the host entry names for the additional clusters, let me know. For now, I use the context name since it will be unique.

@cjimti cjimti removed this from the 1.5.x milestone Jan 18, 2019
@cjimti
Copy link
Member Author

cjimti commented Mar 9, 2019

Multi-cluster support is now in 1.7.x

@cjimti cjimti closed this as completed Mar 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
1.5.x
  
To Do
Development

No branches or pull requests

1 participant