Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

fix disk unavailable issue when mounting multiple azure disks due to dev name change #2410

Merged
merged 1 commit into from
Mar 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ provisioner: kubernetes.io/azure-disk
parameters:
kind: Managed
storageaccounttype: Standard_LRS
cachingmode: None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the default cachingmode if it is not set?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default is ReadWrite, and I have set to None in current k8s upstream code from v1.7-v1.10, all minor version should fix this issue.

---
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
Expand All @@ -22,6 +23,7 @@ provisioner: kubernetes.io/azure-disk
parameters:
kind: Managed
storageaccounttype: Premium_LRS
cachingmode: None
---
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
Expand All @@ -34,6 +36,7 @@ provisioner: kubernetes.io/azure-disk
parameters:
kind: Managed
storageaccounttype: Standard_LRS
cachingmode: None
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
labels:
kubernetes.io/cluster-service: "true"
provisioner: kubernetes.io/azure-disk
parameters:
cachingmode: None
---
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
Expand All @@ -19,6 +21,7 @@ provisioner: kubernetes.io/azure-disk
parameters:
kind: Managed
storageaccounttype: Premium_LRS
cachingmode: None
---
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
Expand All @@ -31,6 +34,7 @@ provisioner: kubernetes.io/azure-disk
parameters:
kind: Managed
storageaccounttype: Standard_LRS
cachingmode: None
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
Expand Down