File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
content/zh-cn/docs/tasks/debug/debug-application Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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,
4141you can use the following:
4242-->
4343## 调试 StatefulSet {#debuggin-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<!--
You can’t perform that action at this time.
0 commit comments