简体   繁体   中英

Attach Persistent Storage to ECS + Launch Type Fargate

I want to use one persistent storage in cluster, which is being used in all tasks of the services of this cluster. Like in windows, every application has access to "C:/" or "D" storage.

Currently Fargate doesn't support persistent storage natively. See here please.

So, you can try either:

  • Share volumes between containers, but ephemeral storage. See here .
  • Use s3 as volume directly mounting a bucket as local storage in the task, using a 3rd party driver like s3fs . I've used it and it works just fine.
  • Use EC2 as launch-type instead of Fargate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM