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
Missing "Attach Visual Studio Code" item in VS Code Kubernetes Pod right-click menu on Remote SSH instances #1021
Comments
"Attach Visual Studio Code" is not, I think, defined by the Kubernetes extension - it comes from the Remote extension itself. Looks like the Remote extension is meant to be working with our pod tree UI but isn't at the moment - I don't think we've changed anything, though, not sure if they have. @squillace Could you reach out to the Remote extension folks please and ask them to review this issue? Thanks! |
And update for this issue? |
I was facing this issue on Ubuntu 20.04 but installing the "remote containers" extension solved this! |
@pk1996 Are you sure that you're connecting to the remote container from the remote SSH host, not from local VS Code instance? For local instance it works for me too, but doesn't work when I connect to a remove host via SSH, and then from that instance - connect to Kubernetes Pod. I have "remote containers" installed, but still have no "Attach" menu item. Also my K8s uses not the Versions: |
Here is an issue about missing support for CRI containers: microsoft/vscode-remote-release#6014 - maybe it's related. |
@MurzNN not 100% sure but I essentially create Kubernetes pods and connect to them via VScode on my local system. Hope this answers your question! |
On my local system it works too, it's broken only when I try to attach to K8s containers from the VS Code Remote SSH instance. |
Any update? I faced the same. No |
To reiterate, we don't provide or implement this command. I think it comes from the remote containers extension. I'm not sure I can provide any more information, sorry. |
@itowlson Thanks for the information! I've found seems similar issue in Remote Containers extension microsoft/vscode-remote-release#7108 and it's already have a fix! 🎉 but it doesn't work for me. And some more maybe related issues: |
Same issue. |
@MurzNN did you find any fix for this? |
In the docs here https://code.visualstudio.com/docs/remote/attach-container#_attach-to-a-container-in-a-kubernetes-cluster there is described, that Pod right-click menu must contain an "Attach Visual Studio Code" item to launch VS Code inside that container.
But it is missing for me, if I try to do this from VS Code Remote SHH instance, here is the screenshot:
Other functions like Terminal, Port Forward, etc - exist and works well,
kubectl
in console works well too.What can cause this problem with missing "Attach to Kubernetes container" feature and how to fix this? Can I give any additional debug information to understand the source of this issue?
Extensions versions:
Kubernetes: v1.3.4
Remote - Containers: v0.209.6
VS Code Version: 1.63.2
Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3
Date: 2021-12-15T09:39:46.686Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.13.0-22-generic
The text was updated successfully, but these errors were encountered: