|
1 |
| -# Kubernetes Snapshots User Guide (Alpha) |
| 1 | +# Kubernetes Snapshots User Guide (Beta) |
2 | 2 |
|
3 |
| ->**Attention:** VolumeSnapshot is an alpha feature. Make sure you have enabled it in Kubernetes API server using `--feature-gates=VolumeSnapshotDataSource=true` flag. |
| 3 | +>**Attention:** Attention: VolumeSnapshot is a Beta feature enabled by default in Kubernetes 1.17+. Attention: VolumeSnapshot is only available in the driver version "master". |
4 | 4 |
|
5 |
| -### Install Driver with alpha snapshot feature |
| 5 | +### [Install Driver](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/blob/master/docs/kubernetes/user-guides/driver-install.md) with beta snapshot feature. |
6 | 6 |
|
7 | 7 | 1. [One-time per project] Create GCP service account for the CSI driver and set required roles
|
8 | 8 |
|
|
79 | 79 | The output is similar to this:
|
80 | 80 |
|
81 | 81 | ```yaml
|
82 |
| - apiVersion: snapshot.storage.k8s.io/v1alpha1 |
83 | 82 | kind: VolumeSnapshot
|
84 | 83 | metadata:
|
85 |
| - ... |
86 |
| - name: snapshot-source-pvc |
87 |
| - namespace: default |
88 |
| - ... |
| 84 | + creationTimestamp: "2020-05-13T21:48:08Z" |
| 85 | + finalizers: |
| 86 | + - snapshot.storage.kubernetes.io/volumesnapshot-as-source-protection |
| 87 | + - snapshot.storage.kubernetes.io/volumesnapshot-bound-protection |
| 88 | + generation: 1 |
| 89 | + managedFields: |
| 90 | + - apiVersion: snapshot.storage.k8s.io/v1beta1 |
| 91 | + fieldsType: FieldsV1 |
| 92 | + fieldsV1: |
| 93 | + f:status: |
| 94 | + f:readyToUse: {} |
| 95 | + manager: snapshot-controller |
| 96 | + operation: Update |
| 97 | + time: "2020-05-13T21:49:42Z" |
| 98 | + name: snapshot-source-pvc |
| 99 | + namespace: default |
| 100 | + resourceVersion: "531499" |
| 101 | + selfLink: /apis/snapshot.storage.k8s.io/v1beta1/namespaces/default/volumesnapshots/snapshot-source-pvc |
| 102 | + uid: a10fd0ff-b868-4527-abe7-74d5b420731e |
89 | 103 | spec:
|
90 |
| - snapshotClassName: default-snapshot-class |
91 |
| - snapshotContentName: snapcontent-b408076b-720b-11e9-b9e3-42010a800014 |
92 |
| - ... |
| 104 | + source: |
| 105 | + persistentVolumeClaimName: source-pvc |
| 106 | + volumeSnapshotClassName: csi-gce-pd-snapshot-class |
93 | 107 | status:
|
94 |
| - creationTime: "2019-05-09T03:37:01Z" |
| 108 | + boundVolumeSnapshotContentName: snapcontent-a10fd0ff-b868-4527-abe7-74d5b420731e |
| 109 | + creationTime: "2020-05-13T21:48:43Z" |
95 | 110 | readyToUse: true
|
96 | 111 | restoreSize: 6Gi
|
97 | 112 | ```
|
|
0 commit comments