Skip to content

Commit

Permalink
Merge pull request kubernetes#212 from noelbundick/azure-managed-disk
Browse files Browse the repository at this point in the history
Add details on mounting existing Azure Managed Disks
  • Loading branch information
k8s-ci-robot authored Apr 2, 2018
2 parents 42210cb + 3c8adbf commit 11aa742
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
5 changes: 3 additions & 2 deletions staging/volumes/azure_disk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ On Azure VM, create a Pod using the volume spec based on [azure](azure.yaml).

In the pod, you need to provide the following information:

- *diskName*: (required) the name of the VHD blob object.
- *diskURI*: (required) the URI of the vhd blob object.
- *diskName*: (required) the name of the VHD blob object OR the name of an Azure managed data disk if Kind is Managed.
- *diskURI*: (required) the URI of the vhd blob object OR the resourceID of an Azure managed data disk if Kind is Managed.
- *kind*: (optional) kind of disk. Must be one of Shared (multiple disks per storage account), Dedicated (single blob disk per storage account), or Managed (Azure managed data disk). Default is Shared.
- *cachingMode*: (optional) disk caching mode. Must be one of None, ReadOnly, or ReadWrite. Default is None.
- *fsType*: (optional) the filesystem type to mount. Default is ext4.
- *readOnly*: (optional) whether the filesystem is used as readOnly. Default is false.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
kind: Pod
apiVersion: v1
metadata:
name: pod-uses-managed-ssd-5g
labels:
name: storage
spec:
containers:
- image: nginx
name: az-c-01
command:
- /bin/sh
- -c
- while true; do echo $(date) >> /mnt/managed/outfile; sleep 1; done
volumeMounts:
- name: managed01
mountPath: /mnt/managed
volumes:
- name: managed01
azureDisk:
kind: Managed
diskName: myDisk
diskURI: /subscriptions/<subscriptionID>/resourceGroups/<resourceGroup>/providers/Microsoft.Compute/disks/<diskName>

0 comments on commit 11aa742

Please sign in to comment.