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
Copy file name to clipboardExpand all lines: content/zh-cn/docs/reference/kubectl/generated/kubectl_get/_index.md
+9-25
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ no_list: true
17
17
<!--
18
18
Display one or many resources.
19
19
20
-
Prints a table of the most important information about the specified resources. You can filter the list using a label selector and the --selector flag. If the desired resource type is namespaced you will only see results in your current namespace unless you pass --all-namespaces.
20
+
Prints a table of the most important information about the specified resources. You can filter the list using a label selector and the --selector flag. If the desired resource type is namespaced you will only see results in the current namespace unless you pass --all-namespaces.
21
21
-->
22
22
显示一个或多个资源。
23
23
@@ -55,6 +55,8 @@ kubectl get [(-o|--output=)json|yaml|name|go-template|go-template-file|template|
55
55
# List all replication controllers and services together in ps output format
56
56
# List one or more resources by their type and names
57
57
# List the 'status' subresource for a single pod
58
+
# List all deployments in namespace 'backend'
59
+
# List all pods existing in all namespaces
58
60
```
59
61
-->
60
62
```shell
@@ -93,6 +95,12 @@ kubectl get rc/web service/frontend pods/web-pod-13je7
93
95
94
96
# 列举单个 Pod 的 “status” 子资源
95
97
kubectl get pod web-pod-13je7 --subresource status
0 commit comments