kubectl convert
Convert config files between different API versions. Both YAML and JSON formats are accepted
Options
| Name | Description | 
|---|---|
| --allow-missing-template-keys | If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats | 
| -f, --filename  <File> | Filename, directory, or URL to files identifying the resource | 
| -k, --kustomize  <Kustomize Dir> | Process the kustomization directory. This flag can't be used together with -f or -R | 
| -o, --output  <Output Format> | Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file | 
| -R, --recursive | Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory | 
| --template  <arg> | Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview] | 
| --local | If true, convert will NOT try to contact api-server but run locally | 
| --output-version  <arg> | Output the formatted object with the given group version (for ex: 'extensions/v1beta1') | 
| --validate | If true, use a schema to validate the input before sending it |