Skip to content

Commit a7acae2

Browse files
authored
Merge pull request #274 from jiaxunsongucb/change_account_type_azurestack
fix: only use Standard_LRS storageAccountType on Azure Stack
2 parents 6a3d47c + 7827d78 commit a7acae2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ Please refer to [install Azure Blob Storage CSI driver](https://github.com/kuber
4343
### Troubleshooting
4444
- [CSI driver troubleshooting guide](./docs/csi-debug.md)
4545
46+
### Limitations
47+
- Although Blob CSI Driver allows ReadWriteMany access mode to be used, its functionality is limited by the underlying volume-mounting technology. If azure-storage-fuse is being used to mount a Blob storage container, multiple nodes are allowed to mount the same container, but for just read-only scenarios. It means, you can still use ReadWriteMany mode to claim a volume, but you should carefully avoid writing to one single file from multiple nodes as there will be data corruption. NFSv3, in the contrast, fully supports ReadWriteMany access mode.
48+
- The azure-storage-fuse method only supports Linux agent nodes.
49+
- For the Kubernetes clusters that are running on Azure Stack Hub environments, only Standard Locally-redundant storage (Standard_LRS) Storage Account is supported. You will not be blocked if you claim a volume with other types of Storage Account but under the hood, the account type will be converted to Standard_LRS.
50+
4651
## Kubernetes Development
4752
Please refer to [development guide](./docs/csi-dev.md)
4853

pkg/blob/controllerserver.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest)
112112
}
113113
if IsAzureStackCloud(d.cloud) {
114114
accountKind = string(storage.Storage)
115+
storageAccountType = "Standard_LRS"
115116
}
116117

117118
tags, err := azure.ConvertTagsToMap(customTags)

0 commit comments

Comments
 (0)