Dumps all Kubernetes resources into a directory structure:
out/NAMESPACE/GVK/NAME.yaml
For example:
out/kube-system/v1.ConfigMap/kubelet-config.yaml
The resources of kind Secret are not dumped by default. If needed, use --dump-secrets
.
The easiest way is to run the code like this:
go run github.com/guettli/dumpall@latest
Written: out/cert-manager/v1.Service/cert-manager.yaml
Written: out/cert-manager/v1.Service/cert-manager-webhook.yaml
Written: out/default/v1.Service/kubernetes.yaml
Written: out/_cluster/v1.Namespace/cert-manager.yaml <-- non-namespaces resources use the directory "_cluster"
...
After running dumpall you can modify your cluster, or just wait some time.
Then you can compare the changes with your favorite diff tool. I like Meld:
mv out out-1
go run github.com/guettli/dumpall@latest
meld out-1 out
- check-conditions Tiny tool to check all conditions of all resources in your Kubernetes cluster.
- Thomas WOL: Working out Loud Articles, projects, and insights spanning various topics in software development.
Please create an issue if you have a question or a feature request.