Files
rancher-docs/versioned_docs/version-2.6/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/use-windows-clusters/azure-storageclass-configuration.md
T
Marty Hernandez Avedon 7a7d6904fb #420 SEO Improvements: Kubernetes clusters in Rancher (#771)
* 420 SEO Improvements: Kubernetes clusters in Rancher

canonicized checklist-for-production-ready-clusters

* canonicized set-up-cloud-providers

* vSphere title updates

* another retitle, to match file name

* typo and acronym expansion

* syncing vSphere pages, including missing versioned pages

* more missing versioned docs

* canonicized set-up-clusters-from-hosted-kubernetes-providers

* canonicized use-windows-clusters

* missing versioned docs

* canonicized remaining pages in kubernetes-clusters-in-rancher-setup
2023-08-11 19:08:09 -04:00

1.5 KiB

title
title
Configuration for Storage Classes in Azure
<head> </head>

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/v1
    kind: ClusterRole
    metadata:
      name: system:azure-cloud-provider
    rules:
    - apiGroups: ['']
      resources: ['secrets']
      verbs:     ['get','create']
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRoleBinding
    metadata:
      name: system:azure-cloud-provider
    roleRef:
      kind: ClusterRole
      apiGroup: rbac.authorization.k8s.io
      name: system:azure-cloud-provider
    subjects:
    - 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>