We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 778497b commit c464fd6Copy full SHA for c464fd6
content/zh/docs/tasks/administer-cluster/change-pv-reclaim-policy.md
@@ -44,13 +44,17 @@ content_template: templates/task
44
45
2. 选择你的 PersistentVolumes 中的一个并更改它的回收策略:
46
47
- kubectl patch pv <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
48
-
+ ```shell
+ kubectl patch pv <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
49
+ ```
50
+
51
这里的 `<your-pv-name>` 是你选择的 PersistentVolume 的名字。
52
53
3. 验证你选择的 PersistentVolume 拥有正确的策略:
54
- kubectl get pv
55
56
+ kubectl get pv
57
58
59
输出类似于这样:
60
0 commit comments