File tree Expand file tree Collapse file tree 12 files changed +531
-14
lines changed Expand file tree Collapse file tree 12 files changed +531
-14
lines changed Original file line number Diff line number Diff line change 11
11
steps :
12
12
- name : Checkout code
13
13
uses : actions/checkout@v2
14
- - name : Install nfs-common
15
- run : |
16
- sudo apt-get install -y nfs-common
17
14
- name : Run tests
18
15
run : |
19
- make sanity-test
16
+ sudo make sanity-test
Original file line number Diff line number Diff line change @@ -43,4 +43,4 @@ local-k8s-uninstall:
43
43
kubectl delete -f $(DEPLOY_FOLDER ) /csi-nfs-node.yaml --ignore-not-found
44
44
kubectl delete -f $(DEPLOY_FOLDER ) /csi-nfs-driverinfo.yaml --ignore-not-found
45
45
kubectl delete -f $(DEPLOY_FOLDER ) /rbac-csi-nfs-controller.yaml --ignore-not-found
46
- echo " Uninstalled NFS driver"
46
+ echo " Uninstalled NFS driver"
Original file line number Diff line number Diff line change 70
70
allowPrivilegeEscalation : true
71
71
imagePullPolicy : IfNotPresent
72
72
args :
73
+ - " -v=5"
73
74
- " --nodeid=$(NODE_ID)"
74
75
- " --endpoint=$(CSI_ENDPOINT)"
75
76
env :
@@ -104,4 +105,4 @@ spec:
104
105
path : /var/lib/kubelet/pods
105
106
type : Directory
106
107
- name : socket-dir
107
- emptyDir : {}
108
+ emptyDir : {}
Original file line number Diff line number Diff line change 45
45
allowPrivilegeEscalation : true
46
46
image : quay.io/k8scsi/nfsplugin:v2.0.0
47
47
args :
48
+ - " -v=5"
48
49
- " --nodeid=$(NODE_ID)"
49
50
- " --endpoint=$(CSI_ENDPOINT)"
50
51
env :
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : apps/v1
3
+ kind : StatefulSet
4
+ metadata :
5
+ name : statefulset-nfs
6
+ labels :
7
+ app : nginx
8
+ spec :
9
+ serviceName : statefulset-nfs
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-nfs
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/nfs/outfile; sleep 1; done
25
+ volumeMounts :
26
+ - name : persistent-storage
27
+ mountPath : /mnt/nfs
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 : nfs-csi
38
+ spec :
39
+ accessModes : ["ReadWriteOnce"]
40
+ resources :
41
+ requests :
42
+ storage : 10Gi
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : storage.k8s.io/v1
3
+ kind : StorageClass
4
+ metadata :
5
+ name : nfs-csi
6
+ provisioner : nfs.csi.k8s.io
7
+ parameters :
8
+ server : nfs-server.default.svc.cluster.local
9
+ share : /
10
+ reclaimPolicy : Retain # only retain is supported
11
+ volumeBindingMode : Immediate
12
+ mountOptions :
13
+ - hard
14
+ - nfsvers=4.1
You can’t perform that action at this time.
0 commit comments