You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
96
96
-->
97
97
### 持久卷 {#persistent-volumes}
98
98
99
99
删除 StatefulSet 管理的 Pod 并不会删除关联的卷。这是为了确保你有机会在删除卷之前从卷中复制数据。
100
-
在 Pod 离开[终止状态](/zh-cn/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination)
101
-
后删除 PVC 可能会触发删除背后的 PV 持久卷,具体取决于存储类和回收策略。
100
+
在 Pod 已经终止后删除 PVC 可能会触发删除背后的 PV 持久卷,具体取决于存储类和回收策略。
102
101
永远不要假定在 PVC 删除后仍然能够访问卷。
103
102
104
103
<!--
@@ -111,11 +110,11 @@ Use caution when deleting a PVC, as it may lead to data loss.
111
110
<!--
112
111
### Complete deletion of a StatefulSet
113
112
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:
@@ -133,20 +132,20 @@ In the example above, the Pods have the label `app.kubernetes.io/name=MyApp`; su
133
132
<!--
134
133
### Force deletion of StatefulSet pods
135
134
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.
137
136
-->
138
137
### 强制删除 StatefulSet 的 Pod
139
138
140
139
如果你发现 StatefulSet 的某些 Pod 长时间处于 'Terminating' 或者 'Unknown' 状态,
0 commit comments