k8s-yaml-splitter
, is a powerful command-line interface (CLI) tool built for extraction of Kubernetes YAML manifests into individual files.
It can work just by piping in from STDIN:
kustomize build example/ | k8s-yaml-splitter out/
In order to use the k8s-yaml-splitter
command-line tool, you need to have Go (version 1.21) installed on your system.
go install go.nathanmartins.sh/k8s-yaml-splitter@latest
or download the binary over at:
https://github.com/nathanmartins/k8s-yaml-splitter/releases/latest