- Simple http server supporting GET and PUT
- Assuming disk.img in a certain file, only serving this one file
- Pod to mount either block or FS PVC and map the file
- oauth-proxy sidecar to authenticate access
- route to expose to public
Effect: HTTP based upload/download of PVC, authenticated against Kube.
$ TOKEN=$(oc create token TBD)
$ curl --insecure -L -v -H"Authorization: Bearer $TOKEN" https://proxy-default.example.com/disk.raw
$ TOKEN=$(oc create token TBD)
$ curl --insecure -L -v -H"Authorization: Bearer $TOKEN" https://proxy-default.example.com/disk.raw --upload-file mydisk.raw