File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
content/zh-cn/docs/reference/kubectl Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -485,9 +485,10 @@ Output format | Description
485485`-o json` | Output a JSON formatted API object.
486486`-o jsonpath=<template>` | Print the fields defined in a [jsonpath](/docs/reference/kubectl/jsonpath/) expression.
487487`-o jsonpath-file=<filename>` | Print the fields defined by the [jsonpath](/docs/reference/kubectl/jsonpath/) expression in the `<filename>` file.
488+ `-o kyaml` | Output a KYAML formatted API object (alpha, requires environment variable `KUBECTL_KYAML="true"`).
488489`-o name` | Print only the resource name and nothing else.
489490`-o wide` | Output in the plain-text format with any additional information. For pods, the node name is included.
490- `-o yaml` | Output a YAML formatted API object.
491+ `-o yaml` | Output a YAML formatted API object. KYAML is an experimental Kubernetes-specific dialect of YAML, and can be parsed as YAML.
491492-->
492493输出格式 | 描述
493494------------------------------------| -----------
@@ -496,9 +497,10 @@ Output format | Description
496497` -o json ` | 输出 JSON 格式的 API 对象
497498` -o jsonpath=<template> ` | 打印 [ jsonpath] ( /zh-cn/docs/reference/kubectl/jsonpath/ ) 表达式定义的字段
498499` -o jsonpath-file=<filename> ` | 打印 ` <filename> ` 文件中 [ jsonpath] ( /zh-cn/docs/reference/kubectl/jsonpath/ ) 表达式定义的字段。
500+ ` -o kyaml ` | 输出 KYAML 格式的 API 对象(Alpha 阶段,需要设置 ` KUBECTL_KYAML="true" ` 环境变量来启用)。
499501` -o name ` | 仅打印资源名称而不打印任何其他内容。
500502` -o wide ` | 以纯文本格式输出,包含所有附加信息。对于 Pod 包含节点名。
501- ` -o yaml ` | 输出 YAML 格式的 API 对象。
503+ ` -o yaml ` | 输出 YAML 格式的 API 对象。KYAML 是 YAML 的一种实验性的 Kubernetes 专用方言,可以像 YAML 一样进行解析。
502504
503505<!--
504506##### Example
You can’t perform that action at this time.
0 commit comments