Add indentations and kubernetes slack link
This commit is contained in:
@@ -53,9 +53,9 @@ To convert the volume mode, an authorised user must do the following:
|
|||||||
created PVC in the given namespace.
|
created PVC in the given namespace.
|
||||||
2. Identify the `VolumeSnapshotContent` bound to the above `VolumeSnapshot`.
|
2. Identify the `VolumeSnapshotContent` bound to the above `VolumeSnapshot`.
|
||||||
|
|
||||||
```
|
```shell
|
||||||
kubectl get volumesnapshot -n <namespace>
|
kubectl get volumesnapshot -n <namespace>
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Add the annotation [`snapshot.storage.kubernetes.io/allowVolumeModeChange`](/docs/reference/labels-annotations-taints/#snapshot-storage-kubernetes-io-allowvolumemodechange)
|
3. Add the annotation [`snapshot.storage.kubernetes.io/allowVolumeModeChange`](/docs/reference/labels-annotations-taints/#snapshot-storage-kubernetes-io-allowvolumemodechange)
|
||||||
to the `VolumeSnapshotContent`.
|
to the `VolumeSnapshotContent`.
|
||||||
@@ -63,13 +63,13 @@ to the `VolumeSnapshotContent`.
|
|||||||
4. This annotation can be added either via software or manually by the authorised
|
4. This annotation can be added either via software or manually by the authorised
|
||||||
user. The `VolumeSnapshotContent` annotation must look like following manifest fragment:
|
user. The `VolumeSnapshotContent` annotation must look like following manifest fragment:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
kind: VolumeSnapshotContent
|
kind: VolumeSnapshotContent
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
- snapshot.storage.kubernetes.io/allowVolumeModeChange: "true"
|
- snapshot.storage.kubernetes.io/allowVolumeModeChange: "true"
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note**: For pre-provisioned `VolumeSnapshotContents`, you must take an extra
|
**Note**: For pre-provisioned `VolumeSnapshotContents`, you must take an extra
|
||||||
step of setting `spec.sourceVolumeMode` field to either `Filesystem` or `Block`,
|
step of setting `spec.sourceVolumeMode` field to either `Filesystem` or `Block`,
|
||||||
@@ -77,7 +77,7 @@ depending on the mode of the volume from which this snapshot was taken.
|
|||||||
|
|
||||||
An example is shown below:
|
An example is shown below:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: snapshot.storage.k8s.io/v1
|
apiVersion: snapshot.storage.k8s.io/v1
|
||||||
kind: VolumeSnapshotContent
|
kind: VolumeSnapshotContent
|
||||||
metadata:
|
metadata:
|
||||||
@@ -93,7 +93,7 @@ An example is shown below:
|
|||||||
volumeSnapshotRef:
|
volumeSnapshotRef:
|
||||||
name: new-snapshot-test
|
name: new-snapshot-test
|
||||||
namespace: default
|
namespace: default
|
||||||
```
|
```
|
||||||
|
|
||||||
Repeat steps 1 to 3 for all `VolumeSnapshotContents` whose volume mode needs to be
|
Repeat steps 1 to 3 for all `VolumeSnapshotContents` whose volume mode needs to be
|
||||||
converted during a backup or restore operation.
|
converted during a backup or restore operation.
|
||||||
@@ -112,5 +112,6 @@ what you think!
|
|||||||
We hope this feature causes no disruption to existing workflows while preventing
|
We hope this feature causes no disruption to existing workflows while preventing
|
||||||
malicious users from exploiting security vulnerabilities in their clusters.
|
malicious users from exploiting security vulnerabilities in their clusters.
|
||||||
|
|
||||||
For any issues, create a thread in the #sig-storage slack channel or an issue
|
For any queries or issues, join [Kubernetes on Slack](https://slack.k8s.io/) and
|
||||||
in the CSI external-snapshotter [repository](https://github.com/kubernetes-csi/external-snapshotter).
|
create a thread in the #sig-storage channel. Alternately, create an issue in the
|
||||||
|
CSI external-snapshotter [repository](https://github.com/kubernetes-csi/external-snapshotter).
|
||||||
Reference in New Issue
Block a user