My final goal is to mount a bucket inside a container to be deployed with google run.
In order to mount a bucket, I am using gcsfuse that requires a privileged container. (https://github.com/maciekrb/gcs-fuse-sample et.al...)
With a VirtualMachine I would use:
gcloud compute instances create-with-container \
[...] \
--container-privileged
While with google run:
gcloud beta run deploy [...]
But it doesn't seem to have this option.
Any hint will be appreciated.
My final goal is to mount a bucket inside a container to be deployed with google run.
What you are trying to do is not supported by Cloud Run.
Cloud Run has a few rules (and a few more):
To use gcs-fuse in Cloud Run would require creating TCP connection that run independently of the state of the container. When Cloud Run puts the container to sleep your connections will fail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With