If you are using Azure VMs for your nodes, you can use Azure files as a StorageClass for the cluster.

    In order to have the Azure platform create the required storage resources, follow these steps:

    1. Configure the Azure cloud provider.
    2. Configure kubectl to connect to your cluster.
    3. Copy the ClusterRole and ClusterRoleBinding manifest for the service account:

      1. ---
      2. apiVersion: rbac.authorization.k8s.io/v1
      3. kind: ClusterRole
      4. metadata:
      5. name: system:azure-cloud-provider
      6. rules:
      7. - apiGroups: ['']
      8. resources: ['secrets']
      9. verbs: ['get','create']
      10. ---
      11. apiVersion: rbac.authorization.k8s.io/v1
      12. kind: ClusterRoleBinding
      13. metadata:
      14. name: system:azure-cloud-provider
      15. roleRef:
      16. kind: ClusterRole
      17. apiGroup: rbac.authorization.k8s.io
      18. name: system:azure-cloud-provider
      19. subjects:
      20. - kind: ServiceAccount
      21. name: persistent-volume-binder
      22. namespace: kube-system
    4. Create these in your cluster using one of the follow command.

      1. # kubectl create -f <MANIFEST>