Closed knpwrs closed 2 months ago
I currently use navi
to do very similar things for my running services, just with fuzzy-finding rather than a TUI: https://github.com/knpwrs/dotfiles/blob/f08642f35fe224949ad0c3a959dbe1d3ec24e6f4/home/config/navi/k8s.cheat
So the implementation is done and it'll be released along with 0.14 very soon. Unfortunately, it won't have the possibility to display namespaces, pods and containers atm.
This would require a change in remotefs-kube to have a side client to work with that, which would be cool, but needs to be implemented. So expect this change in a 0.15.
Description
It would be really cool to be able to browse and copy files to/from services running in kubernetes using termscp. I imagine an initial remote screen could be a listing of namespaces, and when you drill in you can see pods or services running in that namespace, and then you can navigate the file system like normal.
Changes
A
kubectl
"protocol" would need to be added to termscp.Implementation
You can copy files to and from pods running on kubernetes like such:
Remote files can be listed like such:
Namespaces can be listed as such:
Using these (and other) commands it should be possible to implement a kubectl protocol to be able to browse and copy files to/from services running in kubernetes.