How does persistent storage work with charmed applications?

Does anyone know how I can persist storage with microk8s?

Specifically:

  • I want to deploy Spark and make sure that DataFrame objects are persisted someplace on disk.
  • I want to specify how much storage is allocated to different storage requirements (i.e. 1TB for data, 100G for some user, etc.)
  • I want to provision storage for charmed Postgresql that survives destruction of the deployment.

Hola Fidel!

For storage, you can check this doc