https://github.com/sj14/kubedump
⚓️ Tool for dumping manifests from your Kubernetes clusters
https://github.com/sj14/kubedump
backup kubernetes
Last synced: 3 months ago
JSON representation
⚓️ Tool for dumping manifests from your Kubernetes clusters
- Host: GitHub
- URL: https://github.com/sj14/kubedump
- Owner: sj14
- License: mit
- Created: 2023-04-14T10:12:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-12T18:59:16.000Z (4 months ago)
- Last Synced: 2025-09-13T09:30:50.368Z (4 months ago)
- Topics: backup, kubernetes
- Language: Go
- Homepage:
- Size: 178 KB
- Stars: 26
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubedump
Tool for dumping manifests from your Kubernetes clusters.
## Installation
### Precompiled Binaries
Binaries are available for all major platforms. See the [releases](https://github.com/sj14/kubedump/releases) page.
### Homebrew
Using the [Homebrew](https://brew.sh/) package manager for macOS:
``` text
brew install sj14/tap/kubedump
```
### Manually
It's also possible to install via `go install`:
``` text
go install github.com/sj14/kubedump@latest
```
### In-Cluster
See [deploy/cronjob.yaml](./deploy/cronjob.yaml) as an example how to deploy a CronJob with kubedump.
You have to adjust the file accordingly, for example to push the dumped data to a persistent storage.
## Usage
```text
Usage of kubedump:
-clusterscoped
dump cluster-wide resources (default true)
-config string
path to the kubeconfig, empty for in-cluster config (default "~/.kube/config")
-context string
context from the kubeconfig, empty for default
-dir string
output directory for the dumps (default "dump")
-groups string
groups to dump (e.g. 'metrics.k8s.io,coordination.k8s.io'), empty for all
-ignore-groups string
groups to ignore (e.g. 'metrics.k8s.io,coordination.k8s.io')
-ignore-labels string
ignore resources with the given labels (e.g. key1=value1,key2=value2)
-ignore-namespaces string
namespaces to ignore (e.g. 'ns1,ns2')
-ignore-resources string
resources to ignore (e.g. 'configmaps,secrets')
-labels string
dump resources with the given labels (e.g. key1=value1,key2=value2), empty for all
-namespaced
dump namespaced resources (default true)
-namespaces string
namespaces to dump (e.g. 'ns1,ns2'), empty for all
-resources string
resources to dump (e.g. 'configmaps,secrets'), empty for all
-stateless
remove fields containing a state of the resource (default true)
-threads uint
maximum number of threads (minimum 1) (default 10)
-verbosity uint
verbosity of the output (0-3) (default 1)
-version
print version information of this release
```
All options can also be set as environment variables by using their uppercase flag names and changing dashes (`-`) with underscores (`_`), e.g. `ignore-namespaces` becomes `IGNORE_NAMESPACES`.