elotl / kip

Virtual-kubelet provider running pods in cloud instances
Apache License 2.0
223 stars 14 forks source link

Add EFS support to TF example #80

Closed ldx closed 4 years ago

ldx commented 4 years ago

This adds the ability to create an EFS filesystem and mount target on AWS when using the TF example, so cells and pods have access to a simple storage option. I kept it disabled by default.

The main use case for now is to enable cells to cache images, speeding up subsequent pod starts. Right now one can add a cloud init file that will have cells mount in the EFS volume under /tmp/tosi (or symlink it there), effectively sharing an image cache for all pods. Note: this use case relies on https://github.com/elotl/tosi/pull/6; the current AMIs have an older version of tosi.