kube-app-file-explorer
Explore the volume of a pod via SCP/SFTP
Overview
Section titled “Overview”This script:
- starts a sshd privilege pod
- mount the volumes of the app at
/volumes - so that you can use an SCP/SFTP file editor
See also kubectl-sshd if you can’t start a privileged pod
Usage:
Explore the volume of a pod via SCP/SFTP
This command will start a temporary SSH pod where the volume of the app pod have been mapped to /volumes
kube-app-file-explorer <app name> <public key>where:
app nameis used in the labelapp.kubernetes.io/name=<app name>to select the podpublic keyis the path of the public key that should be authorized to connect asroot(Default toKUBE_PUBLIC_KEYenv)