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

Port forwarding in Sonolark #140

Open
johnSchnake opened this issue Apr 27, 2022 · 0 comments
Open

Port forwarding in Sonolark #140

johnSchnake opened this issue Apr 27, 2022 · 0 comments
Labels
active enhancement New feature or request sonolark

Comments

@johnSchnake
Copy link
Contributor

When trying to see if a service/pod is working correctly it can be very useful to use port forwarding. This should be available via sonolark in some capacity.

I'm not sure the user interface that would be ideal, but kubernetes/client-go#51 gives an example how to do it and links to another article about it: https://gianarb.it/blog/programmatically-kube-port-forward-in-go

In my current use case I just need to do the port forward, check if it works and I can access it or not. There may be cases where you wanted it longer living though so something may need to be done like:

claim = kube.portforward(...)
...
kube.endportforward(claim)

And obviously this needs to be non-blocking in the code.

@johnSchnake johnSchnake added enhancement New feature or request sonolark labels Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
active enhancement New feature or request sonolark
Projects
None yet
Development

No branches or pull requests

1 participant