mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fixing broken persistentvolume nfs example
This commit is contained in:
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{},
|
||||
|
12
examples/persistent-volumes/volumes/nfs.yaml
Normal file
12
examples/persistent-volumes/volumes/nfs.yaml
Normal file
@ -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
Block a user