Skip to content

Commit ae4cc75

Browse files
author
zhuzhenghao
committed
[zh-cn] update delete-stateful-set.md
1 parent 0fa3f67 commit ae4cc75

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

content/zh-cn/docs/tasks/run-application/delete-stateful-set.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ weight: 60
1919
<!-- overview -->
2020

2121
<!--
22-
This task shows you how to delete a StatefulSet.
22+
This task shows you how to delete a {{< glossary_tooltip term_id="StatefulSet" >}}.
2323
-->
24-
本任务展示如何删除 StatefulSet。
24+
本任务展示如何删除 {{< glossary_tooltip text="StatefulSet" term_id="StatefulSet" >}}
2525

2626
## {{% heading "prerequisites" %}}
2727

@@ -92,13 +92,12 @@ kubectl delete pods -l app.kubernetes.io/name=MyApp
9292
<!--
9393
### Persistent Volumes
9494
95-
Deleting the Pods in a StatefulSet will not delete the associated volumes. This is to ensure that you have the chance to copy data off the volume before deleting it. Deleting the PVC after the pods have left the [terminating state](/docs/concepts/workloads/pods/pod/#termination-of-pods) might trigger deletion of the backing Persistent Volumes depending on the storage class and reclaim policy. You should never assume ability to access a volume after claim deletion.
95+
Deleting the Pods in a StatefulSet will not delete the associated volumes. This is to ensure that you have the chance to copy data off the volume before deleting it. Deleting the PVC after the pods have terminated might trigger deletion of the backing Persistent Volumes depending on the storage class and reclaim policy. You should never assume ability to access a volume after claim deletion.
9696
-->
9797
### 持久卷 {#persistent-volumes}
9898

9999
删除 StatefulSet 管理的 Pod 并不会删除关联的卷。这是为了确保你有机会在删除卷之前从卷中复制数据。
100-
在 Pod 离开[终止状态](/zh-cn/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination)
101-
后删除 PVC 可能会触发删除背后的 PV 持久卷,具体取决于存储类和回收策略。
100+
在 Pod 已经终止后删除 PVC 可能会触发删除背后的 PV 持久卷,具体取决于存储类和回收策略。
102101
永远不要假定在 PVC 删除后仍然能够访问卷。
103102

104103
<!--
@@ -111,11 +110,11 @@ Use caution when deleting a PVC, as it may lead to data loss.
111110
<!--
112111
### Complete deletion of a StatefulSet
113112
114-
To simply delete everything in a StatefulSet, including the associated pods, you can run a series of commands similar to the following:
113+
To delete everything in a StatefulSet, including the associated pods, you can run a series of commands similar to the following:
115114
-->
116115
### 完全删除 StatefulSet {#complete-deletion-of-a-statefulset}
117116

118-
要删除 StatefulSet 中的所有内容,包括关联的 pods,你可以运行
117+
要删除 StatefulSet 中的所有内容,包括关联的 Pod,你可以运行
119118
一系列如下所示的命令:
120119

121120
```shell
@@ -133,20 +132,20 @@ In the example above, the Pods have the label `app.kubernetes.io/name=MyApp`; su
133132
<!--
134133
### Force deletion of StatefulSet pods
135134
136-
If you find that some pods in your StatefulSet are stuck in the 'Terminating' or 'Unknown' states for an extended period of time, you may need to manually intervene to forcefully delete the pods from the apiserver. This is a potentially dangerous task. Refer to [Deleting StatefulSet Pods](/docs/tasks/manage-stateful-set/delete-pods/) for details.
135+
If you find that some pods in your StatefulSet are stuck in the 'Terminating' or 'Unknown' states for an extended period of time, you may need to manually intervene to forcefully delete the pods from the apiserver. This is a potentially dangerous task. Refer to [Force Delete StatefulSet Pods](/docs/tasks/run-application/force-delete-stateful-set-pod/) for details.
137136
-->
138137
### 强制删除 StatefulSet 的 Pod
139138

140139
如果你发现 StatefulSet 的某些 Pod 长时间处于 'Terminating' 或者 'Unknown' 状态,
141140
则可能需要手动干预以强制从 API 服务器中删除这些 Pod。
142141
这是一项有点危险的任务。详细信息请阅读
143-
[删除 StatefulSet 类型的 Pods](/zh-cn/docs/tasks/run-application/force-delete-stateful-set-pod/)
142+
[强制删除 StatefulSet 的 Pod](/zh-cn/docs/tasks/run-application/force-delete-stateful-set-pod/)
144143

145144
## {{% heading "whatsnext" %}}
146145

147146
<!--
148147
Learn more about [force deleting StatefulSet Pods](/docs/tasks/run-application/force-delete-stateful-set-pod/).
149148
-->
150-
进一步了解[强制删除 StatefulSet 的 Pods](/zh-cn/docs/tasks/run-application/force-delete-stateful-set-pod/)
149+
进一步了解[强制删除 StatefulSet 的 Pod](/zh-cn/docs/tasks/run-application/force-delete-stateful-set-pod/)
151150

152151

0 commit comments

Comments
 (0)