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

Open a shell in a running Deployment #3825

Closed
datho7561 opened this issue Jan 18, 2024 · 0 comments · Fixed by #3827
Closed

Open a shell in a running Deployment #3825

datho7561 opened this issue Jan 18, 2024 · 0 comments · Fixed by #3827
Labels
kind/enhancement New feature or request

Comments

@datho7561
Copy link
Contributor

It would be nice to provide shell access to a container that's running on Kubernetes to help debug issues on the container.

Kubernetes tools like k9s provide this feature.

The command to open a shell on a running pod is:
oc exec -it $POD_NAME -- /bin/sh

If you are running a deployment that has one replica, you can access the container with:
oc exec -it deployment/$DEPLOYMENT_NAME -- /bin/sh

@datho7561 datho7561 added the kind/enhancement New feature or request label Jan 18, 2024
datho7561 added a commit to datho7561/vscode-openshift-tools that referenced this issue Jan 18, 2024
Right click on a Deployment in the Application Explorer and select "Open
Shell to Container" to open a terminal connection to the running container
in the 'OpenShift Terminal'.

Closes redhat-developer#3825

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/vscode-openshift-tools that referenced this issue Jan 19, 2024
Right click on a Deployment in the Application Explorer and select "Open
Shell to Container" to open a terminal connection to the running container
in the 'OpenShift Terminal'.

Closes redhat-developer#3825

Signed-off-by: David Thompson <davthomp@redhat.com>
mohitsuman pushed a commit that referenced this issue Feb 10, 2024
Right click on a Deployment in the Application Explorer and select "Open
Shell to Container" to open a terminal connection to the running container
in the 'OpenShift Terminal'.

Closes #3825

Signed-off-by: David Thompson <davthomp@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant