You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/openshift/howto-create-a-storageclass.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Create an Azure Files StorageClass on Azure Red Hat OpenShift 4
3
3
description: Learn how to create an Azure Files StorageClass on Azure Red Hat OpenShift
4
4
ms.service: azure-redhat-openshift
5
5
ms.topic: article
6
-
ms.date: 10/16/2020
6
+
ms.date: 08/28/2023
7
7
author: johnmarco
8
8
ms.author: johnmarc
9
9
keywords: aro, openshift, az aro, red hat, cli, azure file
@@ -19,7 +19,7 @@ In this article, you’ll create a StorageClass for Azure Red Hat OpenShift 4 th
19
19
> * Setup the prerequisites and install the necessary tools
20
20
> * Create an Azure Red Hat OpenShift 4 StorageClass with the Azure File provisioner
21
21
22
-
If you choose to install and use the CLI locally, this tutorial requires that you are running the Azure CLI version 2.6.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli).
22
+
If you choose to install and use the CLI locally, this tutorial requires that you're running the Azure CLI version 2.6.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli).
23
23
24
24
## Before you begin
25
25
@@ -28,7 +28,7 @@ Deploy an Azure Red Hat OpenShift 4 cluster into your subscription, see [Create
28
28
29
29
### Set up Azure storage account
30
30
31
-
This step will create a resource group outside of the Azure Red Hat OpenShift (ARO) cluster’s resource group. This resource group will contain the Azure Files shares that are created by Azure Red Hat OpenShift’s dynamic provisioner.
31
+
This step creates a resource group outside of the Azure Red Hat OpenShift (ARO) cluster’s resource group. This resource group contains the Azure Files shares that created Azure Red Hat OpenShift’s dynamic provisioner.
32
32
33
33
```azurecli
34
34
AZURE_FILES_RESOURCE_GROUP=aro_azure_files
@@ -60,7 +60,7 @@ az role assignment create --role Contributor --scope /subscriptions/mySubscripti
60
60
61
61
### Set ARO cluster permissions
62
62
63
-
The OpenShift persistent volume binder service account will require the ability to read secrets. Create and assign an OpenShift cluster role to achieve this.
63
+
The OpenShift persistent volume binder service account requires the ability to read secrets. Create and assign an OpenShift cluster role to achieve this.
64
64
```azurecli
65
65
ARO_API_SERVER=$(az aro list --query "[?contains(name,'$CLUSTER')].[apiserverProfile.url]" -o tsv)
## Create StorageClass with Azure Files provisioner
77
77
78
-
This step will create a StorageClass with an Azure Files provisioner. Within the StorageClass manifest, the details of the storage account are required so that the ARO cluster knows to look at a storage account outside of the current resource group.
78
+
This step creates a StorageClass with an Azure Files provisioner. Within the StorageClass manifest, the details of the storage account are required so that the ARO cluster knows to look at a storage account outside of the current resource group.
79
79
80
-
During storage provisioning, a secret named by secretName is created for the mounting credentials. In a multi-tenancy context, it is strongly recommended to set the value for secretNamespace explicitly, otherwise the storage account credentials may be read by other users.
80
+
During storage provisioning, a secret named by secretName is created for the mounting credentials. In a multi-tenancy context, it's strongly recommended to set the value for secretNamespace explicitly, otherwise the storage account credentials may be read by other users.
81
81
82
82
```bash
83
83
cat <<EOF >> azure-storageclass-azure-file.yaml
84
84
kind: StorageClass
85
85
apiVersion: storage.k8s.io/v1
86
86
metadata:
87
87
name: azure-file
88
-
provisioner: kubernetes.io/azure-file
88
+
provisioner: file.csi.azure.com
89
89
mountOptions:
90
90
- dir_mode=0777
91
91
- file_mode=0777
@@ -108,7 +108,7 @@ EOF
108
108
oc create -f azure-storageclass-azure-file.yaml
109
109
```
110
110
111
-
Mount options for Azure Files will generally be dependent on the workload that you are deploying and the requirements of the application. Specifically for Azure files, there are additional parameters that you should consider using.
111
+
Mount options for Azure Files will generally be dependent on the workload that you're deploying and the requirements of the application. Specifically for Azure files, there are other parameters that you should consider using.
112
112
113
113
Mandatory parameters:
114
114
- "mfsymlinks" to map symlinks to a form the client can use
0 commit comments