---
name: "kubernetes-split-yaml"
section: "1"
platform: "linux"
package: "kubernetes-split-yaml"
version: "0.4.0-1+b11"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/kubernetes-split-yaml"
---

# kubernetes-split-yaml(1)

Split a giant yaml file into one file per Kubernetes resource

## NAME

kubernetes-split-yaml - Split a giant yaml file into one file per Kubernetes resource

## DESCRIPTION

### NAME:

-

  kubernetes-split-yaml - Split the 'giant yaml file' into one file pr kubernetes resource

### USAGE:

-

  kubernetes-split-yaml \[global options\] command \[command options\] \[arguments...\]

### COMMANDS:

- help, h

  Shows a list of commands or help for one command

### GLOBAL OPTIONS:

- **--outdir** value

  output dir (default: "generated")

- **--template\_sel** value

  pre-set template to use (default: "tpl\_flat")

- **--tpl\_flat** outdir

  tpl\_flat gotemplate (.X.Outdir is set to outdir flag) (default: "{{.X.Outdir}}/{{.Metadata.Name}}-{{.X.ShortKind}}.yaml")

- **--tpl\_ns** value

  tpl\_ns gotemplate (.X.NS equals .Metadata.Namespace or '\_no\_ns\_' if unset) (default: "{{.X.Outdir}}/{{.X.NS}}/{{.Metadata.Name}}.{{.Kind}}.yaml")

- **--name\_re** value

  Kubernetes API metadata.name to match (default: "^\[^/ \]+$")

- **--namespace\_re** value

  Kubernetes API metadata.namespace to match (default: "^(\|\[a-z0-9\](\[-a-z0-9\]\*\[a-z0-9\])?)$")

- **--kind\_re** value

  Kubernetes API kind to match (default: "^\[0-9a-zA-Z\]+$")

- **--file\_re** value

  final output file regex to match (default: ".+")

- **--help**, **-h**

  show help
