Add support for browsing file system of Kubernetes pods (containers)
See original GitHub issueFor example see: https://marketplace.visualstudio.com/items?itemName=sandipchitale.kubernetes-file-system-explorer.
Basically uses:
kubectl exec -it podname -c containername -- ls /
to get the listings of files starting at /. Show them as tree nodes. Also using the command:
kubectl exec -it podname -c containername -- cat /path/to/file
and showing the returned content in a editor.
BTW the extension also shows the initContainers and Containers in a pod. Shows the filesystems of the running containers.
Both supported by the extension above.
Lastly even better option would be to support dual pane file browser for local and container filesystem. Use the the:
kubectl cp fom podname:/to
to copy files from/to.
Use the https://code.visualstudio.com/api/references/vscode-api#FileSystemProvider API to implement the container filesystem browser.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top GitHub Comments
This is super cool! Thank you for letting us know about this @sandipchitale! Is there anything specifically you’d like the core extension to do? Because it looks like your project is working great as an extension that builds on top via the API, and if we implemented this ourselves then it would just suck the oxygen out of your project. But if there are limitations in the core extension API that are making your life harder, or if we can amplify or contribute to your work, let’s talk!
Thanks for letting us know about this!
cc @squillace
For anyone coming here…the above extension supports:
BTW this issue can be closed if there are no plans to implement the issue functionality in the Kubernetes extension’s code.