Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en/docs/reference/kubectl/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ Output format | Description
`-o json` | Output a JSON formatted API object.
`-o jsonpath=<template>` | Print the fields defined in a [jsonpath](/docs/reference/kubectl/jsonpath/) expression.
`-o jsonpath-file=<filename>` | Print the fields defined by the [jsonpath](/docs/reference/kubectl/jsonpath/) expression in the `<filename>` file.
`-o kyaml` | Output a KYAML formatted API object (alpha, requires environment variable `KUBECTL_KYAML="true"`).
`-o kyaml` | Output a [KYAML](/docs/reference/kubectl/kyaml/) formatted API object (beta).
`-o name` | Print only the resource name and nothing else.
`-o wide` | Output in the plain-text format with any additional information. For pods, the node name is included.
`-o yaml` | Output a YAML formatted API object. KYAML is an experimental Kubernetes-specific dialect of YAML, and can be parsed as YAML.
Expand Down
12 changes: 12 additions & 0 deletions content/en/docs/reference/kubectl/kyaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: KYAML Support
content_type: concept
weight: 40
math: true
---

<!-- overview -->
The {{< glossary_tooltip term_id="kubectl" text="kubectl" >}} tool supports KYAML as an output format.


<!-- body -->
2 changes: 1 addition & 1 deletion content/en/docs/reference/kubectl/quick-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ Output format | Description
`-o=json` | Output a JSON formatted API object
`-o=jsonpath=<template>` | Print the fields defined in a [jsonpath](/docs/reference/kubectl/jsonpath) expression
`-o=jsonpath-file=<filename>` | Print the fields defined by the [jsonpath](/docs/reference/kubectl/jsonpath) expression in the `<filename>` file
`-o=kyaml` | Output a KYAML formatted API object (alpha, requires environment variable `KUBECTL_KYAML="true"`). KYAML is an experimental Kubernetes-specific dialect of YAML, and can be parsed as YAML.
`-o=kyaml` (beta) | Output a [KYAML](/docs/reference/kubectl/kyaml) formatted API object. KYAML is an Kubernetes-specific dialect of YAML, and can be parsed as YAML.
`-o=name` | Print only the resource name and nothing else
`-o=wide` | Output in the plain-text format with any additional information, and for pods, the node name is included
`-o=yaml` | Output a YAML formatted API object
Expand Down