This Yamls files will help you mount a PV volume in Caas and copy a file from local machine to the PV.
Note that this type of manipulation is helpful for mac users how can't moun directly the volume due to incompatibility .
- you already have a tenant
- you already have a namespace
- you already have a file storage created .
- copy all the above manifests and change all the required infos
- create all the resources within your namespaces.
kubectl create -f .
You can now copy your files from local machine to the persistent volume
export POD_NAME=$(kubectl get pod -l app=pv-mounter -o jsonpath="{.items[0].metadata.name}")
kubectl cp YOUR_FILE_OR_FOLDER $POD_NAME:/data