1
1
---
2
2
title : kubectl
3
3
content_type : tool-reference
4
- weight : 28
4
+ weight : 30
5
5
---
6
6
<!--
7
- ---
8
7
title: kubectl
9
8
content_type: tool-reference
10
- weight: 28
11
- ---
9
+ weight: 30
12
10
-->
13
11
14
12
## {{% heading "synopsis" %}}
15
13
16
-
17
-
18
14
<!--
19
15
kubectl controls the Kubernetes cluster manager.
20
16
-->
21
17
kubectl 管理控制 Kubernetes 集群。
22
18
23
-
24
19
<!--
25
20
Find more information at: https://kubernetes.io/docs/reference/kubectl/
26
21
-->
@@ -517,7 +512,7 @@ kubectl 的配置 ("kubeconfig") 文件的路径。默认值: "$HOME/.kube/confi
517
512
<!--
518
513
When set to false, turns off extra HTTP headers detailing invoked kubectl command (Kubernetes version v1.22 or later)
519
514
-->
520
- 设置为 false 时,关闭用于详细说明被调用的 kubectl 命令的额外 HTTP 标头 ( Kubernetes 版本为 v1.22 或者更高 )
515
+ 设置为 false 时,将关闭额外的 HTTP 标头,不再详细说明被调用的 kubectl 命令 (此变量适用于 Kubernetes v1.22 或更高版本 )
521
516
</td >
522
517
</tr >
523
518
@@ -565,7 +560,7 @@ When set to false, turns off extra HTTP headers detailing invoked kubectl comman
565
560
* [ kubectl cp] ( /docs/reference/generated/kubectl/kubectl-commands#cp ) - 将文件和目录拷入/拷出容器
566
561
* [ kubectl create] ( /docs/reference/generated/kubectl/kubectl-commands#create ) - 通过文件或标准输入来创建资源
567
562
* [ kubectl debug] ( /docs/reference/generated/kubectl/kubectl-commands#debug ) - 创建用于排查工作负载和节点故障的调试会话
568
- * [ kubectl delete] ( /docs/reference/generated/kubectl/kubectl-commands#delete ) - 通过文件名、标准输入、资源和名字删除资源,或者通过资源和标签选择器来删除资源
563
+ * [ kubectl delete] ( /docs/reference/generated/kubectl/kubectl-commands#delete ) - 通过文件名、标准输入、资源和名字删除资源,或者通过资源和标签选择算符来删除资源
569
564
<!--
570
565
* [kubectl describe](/docs/reference/generated/kubectl/kubectl-commands#describe) - Show details of a specific resource or group of resources
571
566
* [kubectl diff](/docs/reference/generated/kubectl/kubectl-commands#diff) - Diff live version against would-be applied version
@@ -593,7 +588,7 @@ When set to false, turns off extra HTTP headers detailing invoked kubectl comman
593
588
* [ kubectl get] ( /docs/reference/generated/kubectl/kubectl-commands#get ) - 显示一个或者多个资源信息
594
589
* [ kubectl kustomize] ( /docs/reference/generated/kubectl/kubectl-commands#kustomize ) - 从目录或远程 URL 中构建 kustomization
595
590
* [ kubectl label] ( /docs/reference/generated/kubectl/kubectl-commands#label ) - 更新资源的标签
596
- * [ kubectl logs] ( /docs/reference/generated/kubectl/kubectl-commands#logs ) - 输出 pod 中某容器的日志
591
+ * [ kubectl logs] ( /docs/reference/generated/kubectl/kubectl-commands#logs ) - 输出 Pod 中某容器的日志
597
592
* [ kubectl options] ( /docs/reference/generated/kubectl/kubectl-commands#options ) - 打印所有命令都支持的共有参数列表
598
593
* [ kubectl patch] ( /docs/reference/generated/kubectl/kubectl-commands#patch ) - 基于策略性合并修补(Stategic Merge Patch)规则更新某资源中的字段
599
594
<!--
@@ -605,7 +600,7 @@ When set to false, turns off extra HTTP headers detailing invoked kubectl comman
605
600
* [kubectl run](/docs/reference/generated/kubectl/kubectl-commands#run) - Run a particular image on the cluster
606
601
-->
607
602
* [ kubectl plugin] ( /docs/reference/generated/kubectl/kubectl-commands#plugin ) - 运行命令行插件
608
- * [ kubectl port-forward] ( /docs/reference/generated/kubectl/kubectl-commands#port-forward ) - 将一个或者多个本地端口转发到 pod
603
+ * [ kubectl port-forward] ( /docs/reference/generated/kubectl/kubectl-commands#port-forward ) - 将一个或者多个本地端口转发到 Pod
609
604
* [ kubectl proxy] ( /docs/reference/generated/kubectl/kubectl-commands#proxy ) - 运行一个 kubernetes API 服务器代理
610
605
* [ kubectl replace] ( /docs/reference/generated/kubectl/kubectl-commands#replace ) - 基于文件名或标准输入替换资源
611
606
* [ kubectl rollout] ( /docs/reference/generated/kubectl/kubectl-commands#rollout ) - 管理资源的上线
@@ -619,10 +614,10 @@ When set to false, turns off extra HTTP headers detailing invoked kubectl comman
619
614
* [kubectl version](/docs/reference/generated/kubectl/kubectl-commands#version) - Print the client and server version information
620
615
* [kubectl wait](/docs/reference/generated/kubectl/kubectl-commands#wait) - Experimental: Wait for a specific condition on one or many resources.
621
616
-->
622
- * [ kubectl scale] ( /docs/reference/generated/kubectl/kubectl-commands#scale ) - 为一个 Deployment、ReplicaSet 或 ReplicationController 设置一个新的规模尺寸值
617
+ * [ kubectl scale] ( /docs/reference/generated/kubectl/kubectl-commands#scale ) - 为一个 Deployment、ReplicaSet 或 ReplicationController 设置一个新的规模值
623
618
* [ kubectl set] ( /docs/reference/generated/kubectl/kubectl-commands#set ) - 为对象设置功能特性
624
619
* [ kubectl taint] ( /docs/reference/generated/kubectl/kubectl-commands#taint ) - 在一个或者多个节点上更新污点配置
625
620
* [ kubectl top] ( /docs/reference/generated/kubectl/kubectl-commands#top ) - 显示资源(CPU /内存/存储)使用率
626
621
* [ kubectl uncordon] ( /docs/reference/generated/kubectl/kubectl-commands#uncordon ) - 标记节点为可调度的
627
622
* [ kubectl version] ( /docs/reference/generated/kubectl/kubectl-commands#version ) - 打印客户端和服务器的版本信息
628
- * [ kubectl wait] ( /docs/reference/generated/kubectl/kubectl-commands#wait ) - 实验性:等待一个或多个资源达到某种状态
623
+ * [ kubectl wait] ( /docs/reference/generated/kubectl/kubectl-commands#wait ) - 实验性:等待一个或多个资源达到某种状态
0 commit comments