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

Implement a debug command / commands #87

Open
izakp opened this issue Sep 25, 2018 · 0 comments
Open

Implement a debug command / commands #87

izakp opened this issue Sep 25, 2018 · 0 comments
Labels
low low importance

Comments

@izakp
Copy link
Contributor

izakp commented Sep 25, 2018

Currently hokusai [staging|production] run launches a new container, but implement a way to interact with a running container.

Kubectl provides the exec command to run a command or attach the current session to a running container and port-forward to attach a local port to a remote port

Proposal:

hokusai [staging|production] debug to call kubectl exec -t -i {pod} -- {command} and attach a session to the current shell for a given pod or select the first pod matching the application's selectors from all available running pods - accept an option to override the shell command, otherwise /bin/sh

hokusai [staging|production] attach to call kubectl port-forward {pod} {port}:{port} for a given pod or select the first pod matching the application's selectors from all available running pods - accept an option to specify the port to forward to/from localhost, otherwise 80

@artsyjian artsyjian added low low importance and removed enhancement labels Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low low importance
Projects
None yet
Development

No branches or pull requests

2 participants