microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
363 stars 29 forks source link

Feature Request: Support NFS File Shares #717

Open rhuanbarreto opened 1 year ago

rhuanbarreto commented 1 year ago

Is your feature request related to a problem? Please describe.

Some container volumes rely on NFS file shares. For example in #704, it's not possible to support MongoDB databases.

Describe the solution you'd like.

I'd like to have support for NFS Azure File Shares in Azure Container Apps.

Describe alternatives you've considered.

Today only alternative is to go to AKS with persistent volumes.

fabiankaimer commented 1 year ago

Same goes for other databases as well. PostgreSQL for example requires hardlinks to work, which is currently only supported by NFS file shares. See: https://github.com/docker-library/postgres/issues/548#issuecomment-1001513872

rhuanbarreto commented 1 year ago

In addition, SMB shares (even in the Premium Tier) have a very poor performance for container apps. Hope this can be solved by using NFS shares.

kahawai-sre commented 8 months ago

Any progress on this? As above, NFS v4 is a required standard for many modern linux-based container apps needing shared/persistent storage. I'm blocked on this for an app we were looking to deploy on ACA, which fails to start when configuring it's config dir path to an ACA volume mount from Azure Files.

GP-CAN commented 7 months ago

Same on our side need Azure File NFS share in an ACA but it fails to start.

nimit-vikalp commented 6 months ago

Any progress on this?

fabiankaimer commented 6 months ago

Any chance to somehow vote this up or get some attention from Microsoft on this topic @SophCarp?

cwe1ss commented 5 months ago

The ARM reference already contains a value „NfsAzureFile“ for the field „storageType“. Is this something we can already play around with in private / public preview?

https://learn.microsoft.com/en-us/azure/templates/microsoft.app/containerapps?pivots=deployment-language-bicep#volume

fabiankaimer commented 5 months ago

I got confirmation today, that the feature is currently in preview:

image

Refer to: https://learn.microsoft.com/en-us/azure/container-apps/storage-mounts?tabs=nfs&pivots=azure-cli#azure-files

Thanks guys, for taking care of that :)

anthonychu commented 5 months ago

Yes, we added NFS to the docs this week and it's currently in preview. Please reply here or create a new issue if you run into any problems or have feedback.

riskpoint-per commented 4 months ago

NFS file shares has been in preview for over a month now, but still do not for cases like PostgreSQL which requires hardlinks.

tomi commented 2 days ago

@anthonychu I managed to create an NFS share using the CLI and deploy a new revision that uses it as instructed here. However, the public ingress stopped working after that. Is that something that is not supported with NFS or what might be the issue there?

Edit: Nevermind, this was a NSG issue