question

richardwolford-7948 avatar image
0 Votes"
richardwolford-7948 asked deherman-MSFT answered

Azure AKS Postgres deployment using Storage Account for database

I have a requirement to deploy Postgres to AKS but store the data not on PVC but rather directly in a storage account. My first thought was a file share mounted to the Postgres container, but from what I've read this isn't possible because Postgres requires hard links to the database files.

I also need a second AKS cluster to be able to access the same database file simultaneously, which is why I looked at file shares. Is this a workable scenario? We're not using the PaaS option just to reiterate, deployment to AKS is a requirement for us.

azure-storage-accountsazure-filesazure-database-postgresql
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

deherman-MSFT avatar image
0 Votes"
deherman-MSFT answered

@richardwolford-7948
You would not be able to user Azure Files with SMB due to the limitation mentioned. However you can try this with Azure Files with NFS. This blog post does a good job covering the setup needed.

Hope this helps! Please try this out and let us know if you run into any issues.



Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.