File tree Expand file tree Collapse file tree 3 files changed +45
-3
lines changed Expand file tree Collapse file tree 3 files changed +45
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ az provider register --namespace Microsoft.Storage
33
33
apiVersion : storage.k8s.io/v1
34
34
kind : StorageClass
35
35
metadata :
36
- name : blob
36
+ name : blob-nfs
37
37
provisioner : blob.csi.azure.com
38
38
parameters :
39
39
resourceGroup : EXISTING_RESOURCE_GROUP_NAME # optional, only set this when storage account is not in the same resource group as agent node
@@ -51,7 +51,7 @@ kubectl create -f storageclass-blob-nfs.yaml
51
51
### Example
52
52
- Create a deployment with NFSv3 on Azure storage
53
53
``` console
54
- kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-driver/master/deploy/example/statefulset.yaml
54
+ kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-driver/master/deploy/example/nfs/ statefulset.yaml
55
55
```
56
56
57
57
- enter pod to check
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : apps/v1
3
+ kind : StatefulSet
4
+ metadata :
5
+ name : statefulset-blob
6
+ labels :
7
+ app : nginx
8
+ spec :
9
+ serviceName : statefulset-blob
10
+ replicas : 1
11
+ template :
12
+ metadata :
13
+ labels :
14
+ app : nginx
15
+ spec :
16
+ nodeSelector :
17
+ " kubernetes.io/os " : linux
18
+ containers :
19
+ - name : statefulset-blob
20
+ image : mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine
21
+ command :
22
+ - " /bin/sh"
23
+ - " -c"
24
+ - while true; do echo $(date) >> /mnt/blob/outfile; sleep 1; done
25
+ volumeMounts :
26
+ - name : persistent-storage
27
+ mountPath : /mnt/blob
28
+ updateStrategy :
29
+ type : RollingUpdate
30
+ selector :
31
+ matchLabels :
32
+ app : nginx
33
+ volumeClaimTemplates :
34
+ - metadata :
35
+ name : persistent-storage
36
+ annotations :
37
+ volume.beta.kubernetes.io/storage-class : blob-nfs
38
+ spec :
39
+ accessModes : ["ReadWriteMany"]
40
+ resources :
41
+ requests :
42
+ storage : 100Gi
Original file line number Diff line number Diff line change 2
2
apiVersion : storage.k8s.io/v1
3
3
kind : StorageClass
4
4
metadata :
5
- name : blob
5
+ name : blob-nfs
6
6
provisioner : blob.csi.azure.com
7
7
parameters :
8
8
storageAccount : EXISTING_STORAGE_ACCOUNT_NAME
You can’t perform that action at this time.
0 commit comments