mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-11 22:10:11 +01:00
fix(docs): correct volumesnapshots,volumesnapshotclasses apiversion
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
This commit is contained in:
parent
42c2ba714b
commit
67e0c35270
1 changed files with 7 additions and 5 deletions
|
|
@ -5,7 +5,7 @@ We can create a snapshot of a volume that can be used further for creating a clo
|
||||||
```yaml
|
```yaml
|
||||||
$ cat snapshotclass.yaml
|
$ cat snapshotclass.yaml
|
||||||
kind: VolumeSnapshotClass
|
kind: VolumeSnapshotClass
|
||||||
apiVersion: snapshot.storage.k8s.io/v1beta1
|
apiVersion: snapshot.storage.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: zfspv-snapclass
|
name: zfspv-snapclass
|
||||||
annotations:
|
annotations:
|
||||||
|
|
@ -33,7 +33,7 @@ Create the snapshot using the created SnapshotClass for the selected PVC
|
||||||
|
|
||||||
```
|
```
|
||||||
$ cat snapshot.yaml
|
$ cat snapshot.yaml
|
||||||
apiVersion: snapshot.storage.k8s.io/v1beta1
|
apiVersion: snapshot.storage.k8s.io/v1
|
||||||
kind: VolumeSnapshot
|
kind: VolumeSnapshot
|
||||||
metadata:
|
metadata:
|
||||||
name: zfspv-snap
|
name: zfspv-snap
|
||||||
|
|
@ -59,12 +59,14 @@ zfspv-snap 2m8s
|
||||||
```
|
```
|
||||||
```
|
```
|
||||||
$ kubectl get volumesnapshot.snapshot zfspv-snap -o yaml
|
$ kubectl get volumesnapshot.snapshot zfspv-snap -o yaml
|
||||||
apiVersion: snapshot.storage.k8s.io/v1beta1
|
apiVersion: snapshot.storage.k8s.io/v1
|
||||||
kind: VolumeSnapshot
|
kind: VolumeSnapshot
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
kubectl.kubernetes.io/last-applied-configuration: |
|
kubectl.kubernetes.io/last-applied-configuration: |
|
||||||
{"apiVersion":"snapshot.storage.k8s.io/v1beta1","kind":"VolumeSnapshot","metadata":{"annotations":{},"name":"zfspv-snap","namespace":"default"},"spec":{"source":{"persistentVolumeClaimName":"csi-zfspv"},"volumeSnapshotClassName":"zfspv-snapclass"}}
|
{"apiVersion":"snapshot.storage.k8s.io/v1","kind":
|
||||||
|
"VolumeSnapshot","metadata":{"annotations":{},"name":
|
||||||
|
"zfspv-snap","namespace":"default"},"spec":{"source":{"persistentVolumeClaimName":"csi-zfspv"},"volumeSnapshotClassName":"zfspv-snapclass"}}
|
||||||
creationTimestamp: "2020-02-25T08:25:51Z"
|
creationTimestamp: "2020-02-25T08:25:51Z"
|
||||||
finalizers:
|
finalizers:
|
||||||
- snapshot.storage.kubernetes.io/volumesnapshot-as-source-protection
|
- snapshot.storage.kubernetes.io/volumesnapshot-as-source-protection
|
||||||
|
|
@ -73,7 +75,7 @@ metadata:
|
||||||
name: zfspv-snap
|
name: zfspv-snap
|
||||||
namespace: default
|
namespace: default
|
||||||
resourceVersion: "447494"
|
resourceVersion: "447494"
|
||||||
selfLink: /apis/snapshot.storage.k8s.io/v1beta1/namespaces/default/volumesnapshots/zfspv-snap
|
selfLink: /apis/snapshot.storage.k8s.io/v1/namespaces/default/volumesnapshots/zfspv-snap
|
||||||
uid: 3cbd5e59-4c6f-4bd6-95ba-7f72c9f12fcd
|
uid: 3cbd5e59-4c6f-4bd6-95ba-7f72c9f12fcd
|
||||||
spec:
|
spec:
|
||||||
source:
|
source:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue