File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 14
14
app : csi-nodeplugin-nfsplugin
15
15
spec :
16
16
serviceAccount : csi-nodeplugin
17
- hostNetwork : true
18
17
containers :
19
18
- name : node-driver-registrar
20
19
image : quay.io/k8scsi/csi-node-driver-registrar:v1.0.2
Original file line number Diff line number Diff line change @@ -5,14 +5,19 @@ metadata:
5
5
labels :
6
6
name : data-nfsplugin
7
7
spec :
8
+ claimRef :
9
+ name : data-nfsplugin
10
+ namespace : default
8
11
accessModes :
9
12
- ReadWriteMany
10
13
capacity :
11
14
storage : 100Gi
12
15
csi :
13
16
driver : nfs.csi.k8s.io
14
17
volumeHandle : data-id
15
- volumeAttributes :
18
+ volumeAttributes :
19
+ # The nfs server could be a K8s service
20
+ # server: nfs-server.default.svc.cluster.local
16
21
server : 127.0.0.1
17
22
share : /export
18
23
---
@@ -26,28 +31,22 @@ spec:
26
31
resources :
27
32
requests :
28
33
storage : 100Gi
29
- selector :
30
- matchExpressions :
31
- - key : name
32
- operator : In
33
- values : ["data-nfsplugin"]
34
34
---
35
35
apiVersion : v1
36
36
kind : Pod
37
37
metadata :
38
- name : nginx
38
+ name : nginx
39
39
spec :
40
40
containers :
41
41
- image : maersk/nginx
42
- imagePullPolicy : Always
43
42
name : nginx
44
43
ports :
45
44
- containerPort : 80
46
45
protocol : TCP
47
46
volumeMounts :
48
47
- mountPath : /var/www
49
- name : data-nfsplugin
48
+ name : data-nfsplugin
50
49
volumes :
51
50
- name : data-nfsplugin
52
51
persistentVolumeClaim :
53
- claimName : data-nfsplugin
52
+ claimName : data-nfsplugin
You can’t perform that action at this time.
0 commit comments