Skip to content

Commit c3ac600

Browse files
authored
Merge pull request #35575 from windsonsea/debugstat
[zh-cn] resync /debug-application/debug-statefulset.md
2 parents 1461288 + 1496779 commit c3ac600

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/zh-cn/docs/tasks/debug/debug-application/debug-statefulset.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ This task shows you how to debug a StatefulSet.
3737
<!--
3838
## Debugging a StatefulSet
3939
40-
In order to list all the pods which belong to a StatefulSet, which have a label `app=myapp` set on them,
40+
In order to list all the pods which belong to a StatefulSet, which have a label `app.kubernetes.io/name=MyApp` set on them,
4141
you can use the following:
4242
-->
43-
## 调试 StatefulSet {#debuggin-a-statefulset}
43+
## 调试 StatefulSet {#debugging-a-statefulset}
4444

45-
StatefulSet 在创建 Pod 时为其设置了 `app=myapp` 标签,列出仅属于某 StatefulSet
45+
StatefulSet 在创建 Pod 时为其设置了 `app.kubernetes.io/name=MyApp` 标签,列出仅属于某 StatefulSet
4646
的所有 Pod 时,可以使用以下命令:
4747

4848
```shell
49-
kubectl get pods -l app=myapp
49+
kubectl get pods -l app.kubernetes.io/name=MyApp
5050
```
5151

5252
<!--
@@ -67,5 +67,5 @@ You can debug individual Pods in a StatefulSet using the
6767
<!--
6868
Learn more about [debugging an init-container](/docs/tasks/debug/debug-application/debug-init-containers/).
6969
-->
70-
* 进一步了解如何[调试 Init 容器](/zh-cn/docs/tasks/debug/debug-application/debug-init-containers/)
70+
进一步了解如何[调试 Init 容器](/zh-cn/docs/tasks/debug/debug-application/debug-init-containers/)
7171

0 commit comments

Comments
 (0)