{"id":24830141,"url":"https://github.com/quving/kubefreezer","last_synced_at":"2026-04-19T03:34:02.243Z","repository":{"id":97571513,"uuid":"283218495","full_name":"Quving/kubefreezer","owner":"Quving","description":"Freezes the running kubernetes cluster into local yaml manifests.","archived":false,"fork":false,"pushed_at":"2023-01-23T16:19:45.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T02:43:10.741Z","etag":null,"topics":["backup","docker","kubernetes","shell","yml-files"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Quving.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-28T13:20:15.000Z","updated_at":"2023-01-23T15:52:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ccf725d-2d79-49a8-8b8b-07838cbeda4a","html_url":"https://github.com/Quving/kubefreezer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Quving/kubefreezer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quving%2Fkubefreezer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quving%2Fkubefreezer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quving%2Fkubefreezer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quving%2Fkubefreezer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quving","download_url":"https://codeload.github.com/Quving/kubefreezer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quving%2Fkubefreezer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31993875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","docker","kubernetes","shell","yml-files"],"created_at":"2025-01-30T23:49:06.601Z","updated_at":"2026-04-19T03:34:02.234Z","avatar_url":"https://github.com/Quving.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://drone.quving.com/api/badges/Quving/kubefreezer/status.svg)](https://drone.quving.com/Quving/kubefreezer)\n\n# Kubefreezer\nFreezes the running kubernetes cluster into local yaml manifests.\n\n## Motivation\nBackups are always useful. Especially when the configuration effort is high like with Kubernetes. Usually you have a few manifests lying around locally. However, over time, they become outdated, because you have made a few small adjustments with \"kubectl edit\". These undocumented changes accumulate over time and are then simply no longer traceable.\n\nNowadays there is more and more middleware software available that overlays the kubectl layer to make it easier to use. Rancher for example offers a graphical interface to the kubernetes cluster. With AWS, Azure, Redshift and Google also offer such possibilities. Especially here it is important to store the configurations in a uniform, kubectl conform way somewhere. This is what Kubefreezer offers.\n\n## Environment Variables\n\n| Environment Variable  | Description | Example  |\n|---------------------- |----------|-------------|\n| CLUSTER_NAME          | Name of the kubernetes-cluster to be backed up  | 'test-cluster-0' |\n| NAMESPACES            | Relevant namespaces to be secured | 'default,production,staging,testing' |\n| RESOURCES             | Relevant resources to be secored  | 'ingresses.configmaps,secrets,deployments' |\n| KUBECTL_OPTIONS (optional) | Options that is passed to kubectl.  | '--insecure-skip-tls-verify' |\n\n\n## Usage\n```bash\n#!/bin/bash\ndocker build -t kubefreezer .\ndocker run --rm -it \\\n    -e CLUSTER_NAME='testing-cluster-0' \\\n    -e NAMESPACES='testing,staging,production,default' \\\n    -e RESOURCES='ingresses,secrets,configmaps,deployments' \\\n    -v /path/to/kubeconfig:/app/kubeconfig \\\n    -v /path/to/backup-dir/:/var/lib/data \\\n    kubefreezer:v1.1.0\n```\n\n## Full Example Script\n```\n#!/bin/bash\n#\n# Author:\n# Quving (https://github.com/Quving)\n#\n# Description\n# This script creates a backup of the kubernetes-cluster using kubectl. It creates snapshots of different resources.\n\nBACKUP_DIR=manifests/$(date +%F)\n\nmkdir -p $BACKUP_DIR\n\ndocker run --rm -it \\\n    -e CLUSTER_NAME='quving' \\\n    -e NAMESPACES='default,apps,infrastructure' \\\n    -e RESOURCES='ingresses,secrets,configmaps,deployments,certificates' \\\n    -v $(pwd)/kubeconfig:/app/kubeconfig \\\n    -v $(pwd)/$BACKUP_DIR:/var/lib/data \\\n    quving/kubefreezer:v1.0.0\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquving%2Fkubefreezer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquving%2Fkubefreezer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquving%2Fkubefreezer/lists"}