Kube-dump 1.0

Kube-dump 1.0

The first release of the utility has taken place, with the help of which the resources of the Kubernetes cluster are saved in the form of clean yaml manifests without unnecessary metadata. The script is useful for those who need to migrate configuration between clusters without access to the original configuration files, or to set up cluster resource backup. The launch is possible locally in the form of a bash script, but for those who do not want to install dependencies in the form of kubectl, jq and yq prepared container. The container is also ready to work as a CronJob using the roles assigned in the Service Account.

Key features:

  • Saving is performed only for those resources to which you have read access.
  • You can pass a list of namespaces as input, otherwise all available for your context will be used.
  • Both namespace resources and global cluster resources are subject to persistence.
  • You can use the utility locally as a regular script or run it in a container or in a kubernetes cluster (for example, like a CronJob).
  • Can create archives and rotate them after itself.
  • Can commit state to git repository and push to remote repository.
  • You can specify a specific list of cluster resources to upload.

Read more about setting up and working with the script. documentation

Source: linux.org.ru