Skip to content

Commit 36b409f

Browse files
committed
[AKS] Edits and revisions
1 parent 18a9f3d commit 36b409f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

articles/aks/azure-files-dynamic-pv.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A persistent volume is a piece of storage that has been created for use in a Kub
1616

1717
For more information on Kubernetes persistent volumes, including static creation, see [Kubernetes persistent volumes][kubernetes-volumes].
1818

19-
## Create storage account
19+
## Create a storage account
2020

2121
When dynamically creating an Azure file share as a Kubernetes volume, any storage account can be used as long as it is in the AKS **node** resource group. This group is the one with the *MC_* prefix that was created by the provisioning of the resources for the AKS cluster. Get the resource group name with the [az aks show][az-aks-show] command.
2222

@@ -37,7 +37,7 @@ az storage account create --resource-group MC_myResourceGroup_myAKSCluster_eastu
3737
> [!NOTE]
3838
> Azure Files currently only work with Standard storage. If you use Premium storage, the volume fails to provision.
3939
40-
## Create storage class
40+
## Create a storage class
4141

4242
A storage class is used to define how an Azure file share is created. A storage account can be specified in the class. If a storage account is not specified, a *skuName* and *location* must be specified, and all storage accounts in the associated resource group are evaluated for a match. For more information on Kubernetes storage classes for Azure Files, see [Kubernetes Storage Classes][kubernetes-storage-classes].
4343

@@ -65,9 +65,11 @@ Create the storage class with the [kubectl apply][kubectl-apply] command:
6565
kubectl apply -f azure-file-sc.yaml
6666
```
6767

68-
## Create cluster role and binding
68+
## Create a cluster role and binding
6969

70-
AKS clusters use Kubernetes role-based access control (RBAC) to limit actions that can be performed. *Roles* define the permissions to grant, and *bindings* apply them to desired users. These assignments can be made on a given namespace, or across the entire cluster. To allow the Azure platform to create the required storage resources, create a *clusterrole* and *clusterrolebinding*. Create a file named `azure-pvc-roles.yaml` and copy in the following YAML:
70+
AKS clusters use Kubernetes role-based access control (RBAC) to limit actions that can be performed. *Roles* define the permissions to grant, and *bindings* apply them to desired users. These assignments can be applied to a given namespace, or across the entire cluster. For more information, see [Using RBAC authorization][kubernetes-rbac].
71+
72+
To allow the Azure platform to create the required storage resources, create a *clusterrole* and *clusterrolebinding*. Create a file named `azure-pvc-roles.yaml` and copy in the following YAML:
7173

7274
```yaml
7375
---
@@ -100,7 +102,7 @@ Assign the permissions with the [kubectl apply][kubectl-apply] command:
100102
kubectl apply -f azure-pvc-roles.yaml
101103
```
102104

103-
## Create persistent volume claim
105+
## Create a persistent volume claim
104106

105107
A persistent volume claim (PVC) uses the storage class object to dynamically provision an Azure file share. The following YAML can be used to create a persistent volume claim *5GB* in size with *ReadWriteMany* access. For more information on access modes, see the [Kubernetes persistent volume][access-modes] documentation.
106108

@@ -135,7 +137,7 @@ NAME STATUS VOLUME CAPACITY ACCE
135137
azurefile Bound pvc-8436e62e-a0d9-11e5-8521-5a8664dc0477 5Gi RWX azurefile 5m
136138
```
137139

138-
## Using the persistent volume
140+
## Use the persistent volume
139141

140142
The following YAML creates a pod that uses the persistent volume claim *azurefile* to mount the Azure file share at the */mnt/azure* path.
141143

@@ -260,6 +262,7 @@ Learn more about Kubernetes persistent volumes using Azure Files.
260262
[kubernetes-storage-classes]: https://kubernetes.io/docs/concepts/storage/storage-classes/#azure-file
261263
[kubernetes-volumes]: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
262264
[pv-static]: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#static
265+
[kubernetes-rbac]: https://kubernetes.io/docs/reference/access-authn-authz/rbac/
263266
264267
<!-- LINKS - internal -->
265268
[az-group-create]: /cli/azure/group#az-group-create

0 commit comments

Comments
 (0)