Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Include vs-kubernetes/tools/kubectl in path.

Open
#412 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
kubernetes, shell, vscode
Domain
devops, devtools

Research direction

Open code.sh and inspect line 67, then compare the PATH entries with the kubectl location installed by the Kubernetes extension. Include the requested vs-kubernetes/tools/kubectl path and verify that VS Code can find kubectl when attaching to a running pod.

Written by the indexing model from the issue text.

Description

By using the official Kubernetes extension (ms-kubernetes-tools.vscode-kubernetes-tools), Visual Studio Code can automatically install binaries for kubectl, helm, and minikube.

Unfortunately, if you attempt to explore workloads and try to attach vscode to a running pod, you encounter the following error:

Error running command remote-containers.attachToK8sContainerFromViewlet: A system error occurred (spawn kubectl ENOENT). This is likely caused by the extension that contributes remote-containers.attachToK8sContainerFromViewlet.

To fix this issue, you can edit code.sh (line 67) by adding the following path:

${XDG_DATA_HOME}/.local/state/vs-kubernetes/tools/kubectl

After making this change, vscode is able to find the kubectl binary and the extension will be fully functional.

Dominant language
Shell
Stars
216
Forks
82
Avg merge
1d 7h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flathub/com.visualstudio.code

All issues in flathub/com.visualstudio.code

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.