File tree Expand file tree Collapse file tree 2 files changed +30
-15
lines changed Expand file tree Collapse file tree 2 files changed +30
-15
lines changed Original file line number Diff line number Diff line change @@ -31,23 +31,34 @@ spec:
31
31
requests :
32
32
storage : 100Gi
33
33
---
34
- apiVersion : v1
35
- kind : Pod
34
+ apiVersion : apps/ v1
35
+ kind : Deployment
36
36
metadata :
37
37
name : nginx
38
38
labels :
39
39
app : nginx
40
40
spec :
41
- containers :
42
- - image : nginx:latest
43
- name : nginx
44
- ports :
45
- - containerPort : 80
46
- protocol : TCP
47
- volumeMounts :
48
- - mountPath : /var/www
49
- name : data-nfsplugin
50
- volumes :
51
- - name : data-nfsplugin
52
- persistentVolumeClaim :
53
- claimName : data-nfsplugin
41
+ template :
42
+ replicas : 1
43
+ selector :
44
+ matchLabels :
45
+ app : nginx
46
+ template :
47
+ metadata :
48
+ labels :
49
+ app : nginx
50
+ name : deployment-nginx
51
+ spec :
52
+ containers :
53
+ - image : nginx:latest
54
+ name : nginx
55
+ ports :
56
+ - containerPort : 80
57
+ protocol : TCP
58
+ volumeMounts :
59
+ - mountPath : /var/www
60
+ name : data-nfsplugin
61
+ volumes :
62
+ - name : data-nfsplugin
63
+ persistentVolumeClaim :
64
+ claimName : data-nfsplugin
Original file line number Diff line number Diff line change
1
+ // Flow
2
+ // install the csi driver
3
+ // start the nfs server
4
+ // create PV and PVC and mount it to a pod. Exec into the pod and validate if the mount exists
You can’t perform that action at this time.
0 commit comments