forked from kubernetes-sigs/blob-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpv-blobfuse-auth.yaml
37 lines (37 loc) · 1.15 KB
/
pv-blobfuse-auth.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-blob
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain # "Delete" is not supported in static provisioning
storageClassName: blob-fuse
mountOptions:
- -o allow_other
- --file-cache-timeout-in-seconds=120
csi:
driver: blob.csi.azure.com
readOnly: false
# make sure this volumeid is unique in the cluster
# `#` is not allowed in self defined volumeHandle
volumeHandle: unique-volumeid
volumeAttributes:
resourceGroup: EXISTING_RESOURCE_GROUP_NAME
storageAccount: EXISTING_STORAGE_ACCOUNT_NAME
containerName: EXISTING_CONTAINER_NAME
# refer to https://github.com/Azure/azure-storage-fuse#environment-variables
AzureStorageAuthType: key # key, sas, msi, spn
AzureStorageIdentityClientID:
AzureStorageIdentityObjectID:
AzureStorageIdentityResourceID:
MSIEndpoint:
AzureStorageSPNClientID:
AzureStorageSPNTenantID:
AzureStorageAADEndpoint:
nodeStageSecretRef: # secret should be stored here
name: azure-secret
namespace: default