Mounting a bucket to a container
Written by
Updated at November 14, 2024
Management console
API
- In the management console
, select the folder with your container. - Select Serverless Containers.
- Select the container.
- Go to the Editor tab.
- In the Settings section, select or create a new service account with one of these roles:
storage.viewer
to only read data from the mounted bucket.storage.uploader
to read and write data from/to the mounted bucket.
- Under Mounted buckets, click Add bucket.
- Specify the following in the field:
- Mount path: Mount path. Use this path to access the directory in which the bucket is mounted.
- Bucket: Name of the bucket you want to mount. Alternatively, you can create a new bucket.
- Directory: Folder within the bucket. Leave this field empty to mount the entire bucket.
- Click Create revision.
To mount a bucket, use the deployRevision REST API method for the Container resource or the ContainerService/DeployRevision gRPC API call.