mirror of https://github.com/k3s-io/k3s
Fixing broken persistentvolume nfs example
parent
881f11adbf
commit
e02b6f7f3f
|
@ -151,6 +151,7 @@ func TestExampleObjectSchemas(t *testing.T) {
|
|||
"local-01": &api.PersistentVolume{},
|
||||
"local-02": &api.PersistentVolume{},
|
||||
"gce": &api.PersistentVolume{},
|
||||
"nfs": &api.PersistentVolume{},
|
||||
},
|
||||
"../examples/persistent-volumes/claims": {
|
||||
"claim-01": &api.PersistentVolumeClaim{},
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: v1beta3
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: pv0003
|
||||
spec:
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
nfs:
|
||||
path: /tmp
|
||||
server: 172.17.0.2
|
|
@ -1,9 +0,0 @@
|
|||
id: pv0003
|
||||
kind: PersistentVolume
|
||||
apiVersion: v1beta1
|
||||
spec:
|
||||
source:
|
||||
nfsMount:
|
||||
server: "172.17.0.2"
|
||||
path: "/tmp"
|
||||
readOnly: false
|
Loading…
Reference in New Issue