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/aks/azure-disk-csi.md
+1-94Lines changed: 1 addition & 94 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Use Container Storage Interface (CSI) drivers for Azure Disks on Azure Ku
3
3
description: Learn how to use the Container Storage Interface (CSI) drivers for Azure disks in an Azure Kubernetes Service (AKS) cluster.
4
4
services: container-service
5
5
ms.topic: article
6
-
ms.date: 03/09/2022
6
+
ms.date: 04/06/2022
7
7
author: palma21
8
8
9
9
---
@@ -260,99 +260,6 @@ Filesystem Size Used Avail Use% Mounted on
260
260
/dev/sdc 15G 46M 15G 1% /mnt/azuredisk
261
261
```
262
262
263
-
## Shared disk
264
-
265
-
[Azure shared disks](../virtual-machines/disks-shared.md) is an Azure managed disks feature that enables attaching an Azure disk to agent nodes simultaneously. Attaching a managed disk to multiple agent nodes allows you, for example, to deploy new or migrate existing clustered applications to Azure.
266
-
267
-
> [!IMPORTANT]
268
-
> Currently, only raw block device (`volumeMode: Block`) is supported by the Azure disk CSI driver. Applications should manage the coordination and control of writes, reads, locks, caches, mounts, and fencing on the shared disk, which is exposed as a raw block device.
269
-
270
-
Let's create a file called `shared-disk.yaml` by copying the following command that contains the shared disk storage class and PVC:
271
-
272
-
```yaml
273
-
apiVersion: storage.k8s.io/v1
274
-
kind: StorageClass
275
-
metadata:
276
-
name: managed-csi-shared
277
-
provisioner: disk.csi.azure.com
278
-
parameters:
279
-
skuname: Premium_LRS
280
-
maxShares: "2"
281
-
cachingMode: None # ReadOnly cache is not available for premium SSD with maxShares>1
282
-
reclaimPolicy: Delete
283
-
---
284
-
kind: PersistentVolumeClaim
285
-
apiVersion: v1
286
-
metadata:
287
-
name: pvc-azuredisk-shared
288
-
spec:
289
-
accessModes:
290
-
- ReadWriteMany
291
-
resources:
292
-
requests:
293
-
storage: 256Gi # minimum size of shared disk is 256GB (P15)
294
-
volumeMode: Block
295
-
storageClassName: managed-csi-shared
296
-
```
297
-
298
-
Create the storage class with the [kubectl apply][kubectl-apply] command, and specify your `shared-disk.yaml` file:
299
-
300
-
```console
301
-
$ kubectl apply -f shared-disk.yaml
302
-
303
-
storageclass.storage.k8s.io/managed-csi-shared created
304
-
persistentvolumeclaim/pvc-azuredisk-shared created
305
-
```
306
-
307
-
Now let's create a file called `deployment-shared.yml` by copying the following command:
The Azure disk CSI driver also supports Windows nodes and containers. If you want to use Windows containers, follow the [Windows containers tutorial](windows-container-cli.md) to add a Windows node pool.
0 commit comments