Dumps all kubernetes api resources (pods, deployments, namespaces, etc..) to files in yaml form.
This is implemented in several languages (just for the heck of it)
- Go (primary/official implementation)
- Rust
- Js (node, the original experiment)
- Scala (not yet complete, missing cli)
Dumps all api-resources from all configured contexts.
- Calls
kubectl api-resourcesto figure out what it has access to, then starts downloading all of it usingkubectl get <resource> -o yaml > <file>.
NOTE: also dumps secrets, if you explicitly tell it to do so by providing an encryption key (aes gcm)