Merge pull request #24744 from gaoguangze111/Update-page-cheatsheet
Update links in page cheatsheet.md
This commit is contained in:
@@ -24,7 +24,7 @@ See also: [Kubectl Overview](/docs/reference/kubectl/overview/) and [JsonPath Gu
|
|||||||
|
|
||||||
This page is an overview of the `kubectl` command.
|
This page is an overview of the `kubectl` command.
|
||||||
-->
|
-->
|
||||||
另见: [Kubectl 概述](/docs/reference/kubectl/overview/) 和 [JsonPath 指南](/docs/reference/kubectl/jsonpath)。
|
另见: [Kubectl 概述](/zh/docs/reference/kubectl/overview/) 和 [JsonPath 指南](/zh/docs/reference/kubectl/jsonpath)。
|
||||||
|
|
||||||
本页面是 `kubectl` 命令的概述。
|
本页面是 `kubectl` 命令的概述。
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ detailed config file information.
|
|||||||
## Kubectl 上下文和配置
|
## Kubectl 上下文和配置
|
||||||
|
|
||||||
设置 `kubectl` 与哪个 Kubernetes 集群进行通信并修改配置信息。查看
|
设置 `kubectl` 与哪个 Kubernetes 集群进行通信并修改配置信息。查看
|
||||||
[使用 kubeconfig 跨集群授权访问](/docs/tasks/access-application-cluster/configure-access-multiple-clusters/)
|
[使用 kubeconfig 跨集群授权访问](/zh/docs/tasks/access-application-cluster/configure-access-multiple-clusters/)
|
||||||
文档获取配置文件详细信息。
|
文档获取配置文件详细信息。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@@ -641,7 +641,7 @@ kubectl taint nodes foo dedicated=special-user:NoSchedule
|
|||||||
<!--
|
<!--
|
||||||
List all supported resource types along with their shortnames, [API group](/docs/concepts/overview/kubernetes-api/#api-groups), whether they are [namespaced](/docs/concepts/overview/working-with-objects/namespaces), and [Kind](/docs/concepts/overview/working-with-objects/kubernetes-objects):
|
List all supported resource types along with their shortnames, [API group](/docs/concepts/overview/kubernetes-api/#api-groups), whether they are [namespaced](/docs/concepts/overview/working-with-objects/namespaces), and [Kind](/docs/concepts/overview/working-with-objects/kubernetes-objects):
|
||||||
-->
|
-->
|
||||||
列出所支持的全部资源类型和它们的简称、[API 组](/docs/concepts/overview/kubernetes-api/#api-groups), 是否是[名字空间作用域](/docs/concepts/overview/working-with-objects/namespaces) 和 [Kind](/docs/concepts/overview/working-with-objects/kubernetes-objects)。
|
列出所支持的全部资源类型和它们的简称、[API 组](/zh/docs/concepts/overview/kubernetes-api/#api-groups), 是否是[名字空间作用域](/zh/docs/concepts/overview/working-with-objects/namespaces) 和 [Kind](/zh/docs/concepts/overview/working-with-objects/kubernetes-objects)。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl api-resources
|
kubectl api-resources
|
||||||
@@ -697,8 +697,8 @@ utput format | Description
|
|||||||
`-o=custom-columns=<spec>` | 使用逗号分隔的自定义列来打印表格
|
`-o=custom-columns=<spec>` | 使用逗号分隔的自定义列来打印表格
|
||||||
`-o=custom-columns-file=<filename>` | 使用 `<filename>` 文件中的自定义列模板打印表格
|
`-o=custom-columns-file=<filename>` | 使用 `<filename>` 文件中的自定义列模板打印表格
|
||||||
`-o=json` | 输出 JSON 格式的 API 对象
|
`-o=json` | 输出 JSON 格式的 API 对象
|
||||||
`-o=jsonpath=<template>` | 打印 [jsonpath](/docs/reference/kubectl/jsonpath) 表达式中定义的字段
|
`-o=jsonpath=<template>` | 打印 [jsonpath](/zh/docs/reference/kubectl/jsonpath) 表达式中定义的字段
|
||||||
`-o=jsonpath-file=<filename>` | 打印在 `<filename>` 文件中定义的 [jsonpath](/docs/reference/kubectl/jsonpath) 表达式所指定的字段。
|
`-o=jsonpath-file=<filename>` | 打印在 `<filename>` 文件中定义的 [jsonpath](/zh/docs/reference/kubectl/jsonpath) 表达式所指定的字段。
|
||||||
`-o=name` | 仅打印资源名称而不打印其他内容
|
`-o=name` | 仅打印资源名称而不打印其他内容
|
||||||
`-o=wide` | 以纯文本格式输出额外信息,对于 Pod 来说,输出中包含了节点名称
|
`-o=wide` | 以纯文本格式输出额外信息,对于 Pod 来说,输出中包含了节点名称
|
||||||
`-o=yaml` | 输出 YAML 格式的 API 对象
|
`-o=yaml` | 输出 YAML 格式的 API 对象
|
||||||
@@ -732,7 +732,7 @@ kubectl get pods -A -o=custom-columns='DATA:spec.containers[?(@.image!="k8s.gcr.
|
|||||||
kubectl get pods -A -o=custom-columns='DATA:metadata.*'
|
kubectl get pods -A -o=custom-columns='DATA:metadata.*'
|
||||||
```
|
```
|
||||||
|
|
||||||
有关更多示例,请参看 kubectl [参考文档](/docs/reference/kubectl/overview/#custom-columns)。
|
有关更多示例,请参看 kubectl [参考文档](/zh/docs/reference/kubectl/overview/#custom-columns)。
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
### Kubectl output verbosity and debugging
|
### Kubectl output verbosity and debugging
|
||||||
@@ -778,8 +778,7 @@ Verbosity | Description
|
|||||||
* Also [kubectl Usage Conventions](/docs/reference/kubectl/conventions/) to understand how to use it in reusable scripts.
|
* Also [kubectl Usage Conventions](/docs/reference/kubectl/conventions/) to understand how to use it in reusable scripts.
|
||||||
* See more community [kubectl cheatsheets](https://github.com/dennyzhang/cheatsheet-kubernetes-A4).
|
* See more community [kubectl cheatsheets](https://github.com/dennyzhang/cheatsheet-kubernetes-A4).
|
||||||
-->
|
-->
|
||||||
* 进一步了解 [kubectl 概述](/docs/reference/kubectl/overview/)。
|
* 进一步了解 [kubectl 概述](/zh/docs/reference/kubectl/overview/)。
|
||||||
* 参阅 [kubectl](/docs/reference/kubectl/kubectl/) 选项.
|
* 参阅 [kubectl](/zh/docs/reference/kubectl/kubectl/) 选项.
|
||||||
* 参阅 [kubectl 使用约定](/docs/reference/kubectl/conventions/)来理解如何在可复用的脚本中使用它。
|
* 参阅 [kubectl 使用约定](/zh/docs/reference/kubectl/conventions/)来理解如何在可复用的脚本中使用它。
|
||||||
* 查看社区中其他的 [kubectl 备忘单](https://github.com/dennyzhang/cheatsheet-kubernetes-A4)。
|
* 查看社区中其他的 [kubectl 备忘单](https://github.com/dennyzhang/cheatsheet-kubernetes-A4)。
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user