question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing "Attach Visual Studio Code" item in VS Code Kubernetes Pod right-click menu on Remote SSH instances

See original GitHub issue

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: image

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:11

github_iconTop GitHub Comments

3reactions
pk1996commented, May 22, 2022

I was facing this issue on Ubuntu 20.04 but installing the “remote containers” extension solved this!

3reactions
orlupocommented, Feb 10, 2022

And update for this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attach to a running container - Visual Studio Code
Then select the Kubernetes explorer from the Activity bar and expand the cluster and Pod where the container you want to attach to...
Read more >
Remote Development Tips and Tricks - Visual Studio Code
Visual Studio Code Remote Development troubleshooting tips and tricks for SSH, Containers, and the Windows Subsystem for Linux (WSL)
Read more >
Remote Development using SSH - Visual Studio Code
The Visual Studio Code Remote - SSH extension allows you to open a remote folder on any remote machine, virtual machine, or container...
Read more >
Working with Kubernetes in VS Code
Working with Kubernetes in VS Code. This document will walk you through the process of deploying an application to Kubernetes with Visual Studio...
Read more >
Remote Development FAQ - Visual Studio Code
While this is a sensible default in some cases, it means the extension may not show local containers when VS Code is connected...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found