Kube Dive is a VS Code extension that allows you to explore your Kubernetes clusters as a virtual filesystem. Dive into your pods, browse files, edit them directly, and manage your resources without leaving your editor.
Features
Virtual Filesystem: Browse Contexts, Namespaces, Pods, and their file systems directly in the VS Code Explorer.
Multi-Cluster Support: Seamlessly switch between different Kubernetes contexts (clusters).
File Operations:
Open/Read: View files from your pods.
Edit/Save: Edit files and save them back to the pod transparently.
Rename: Rename files and directories.
Delete: Delete files and directories.
Create: Create new files and directories.
Download: Download files from a pod to your local machine.
Integrated Shell:
Right-click on a Pod to open a shell (sh) in the root directory.
Right-click on a folder or file to open a shell directly in that directory.
Requirements
kubectl: This extension relies on the kubectl command-line tool. Ensure it is installed and available in your system's PATH, or configure the path in the extension settings.
Kubeconfig: Your ~/.kube/config (or equivalent) must be configured with access to the clusters you wish to explore.
Extension Settings
This extension contributes the following settings:
kubedive.kubectlPath: Specifies the absolute path to the kubectl binary. Default is kubectl (uses system PATH).
Known Issues
Large file transfers might be slow as they are piped through kubectl exec.
The extension currently assumes sh is available in the target pods.