![How to connect your Azure File Share (NFS) and your AKS cluster ?](https://technicalandcloud.com/wp-content/uploads/2023/05/Chiot-Dressage-Tutoriel-YouTube-Miniature-1280-×-720-px-800x600.png)
AKS
How to connect your Azure File Share (NFS) and your AKS cluster ?
In this article we will see how to use our Azure File Share ( with NFS protocol) and our Azure Kubernetes Service cluster.
Prerequis
We will need a storage account with the prenium account type « file share »:
![](https://technicalandcloud.com/wp-content/uploads/2023/05/image.png)
And cluster AKS :
![](https://technicalandcloud.com/wp-content/uploads/2023/05/image-2.png)
Connection
We will create a Persistent Volume Claim:
![](https://technicalandcloud.com/wp-content/uploads/2023/05/image-15.png)
and the Persistent Volume:
![](https://technicalandcloud.com/wp-content/uploads/2023/05/image-1.png)
We will deploy a POD to test this:
![](https://technicalandcloud.com/wp-content/uploads/2023/05/image-18.png)
We will « simulate » the pod:
![](https://technicalandcloud.com/wp-content/uploads/2023/05/image-3.png)
We create a .txt file in our directory:
![](https://technicalandcloud.com/wp-content/uploads/2023/05/image-5.png)
I launch an Ubuntu machine in parallel, I mount the NFS and I access my share:
![](https://technicalandcloud.com/wp-content/uploads/2023/05/image-6.png)
We see that the sharing is operational and functional:
![](https://technicalandcloud.com/wp-content/uploads/2023/05/image-8.png)
Conclusion
Now you know how to connect your AKS cluster to a storage account that uses the NFS protocol!