Skip to content

frostebite/K8s-Download-Volume

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Action makes it easy to download any folder from a Persistent Volume (PV) on Kubernetes.

This action schedules a job to mount a PVC, then uses kubectl copy to transfer the files from the running pod to the local filesystem and finally cleans up the job.

Parameters Description
kubeConfig Base64 encoded kubeConfig
volume Persistent Volume Claim (PVC) name to download from
sourcePath Path to a folder on the Persistent Volume to download from
outputPath Name of the folder to download into (the default is k8s-volume-download)
timeout Timeout in seconds to wait for the job to successfully bind to the PVC

Note: Currently very large files will fail to transfer using kubectl copy. I will be adding better support for breaking up files above a certain size into smaller chunks and reassembling them soon.