Skip to main content
Version: 2.4.15

Configuration for Storage Classes in Azure

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:

    ---apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:  name: system:azure-cloud-providerrules:- apiGroups: ['']  resources: ['secrets']  verbs:     ['get','create']---apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRoleBindingmetadata:  name: system:azure-cloud-providerroleRef:  kind: ClusterRole  apiGroup: rbac.authorization.k8s.io  name: system:azure-cloud-providersubjects:- kind: ServiceAccount  name: persistent-volume-binder  namespace: kube-system
  4. Create these in your cluster using one of the follow command.

    # kubectl create -f \<MANIFEST\>