{"id":15191677,"url":"https://github.com/crust-gather/crust-gather","last_synced_at":"2025-12-29T18:56:57.112Z","repository":{"id":215253667,"uuid":"738492146","full_name":"crust-gather/crust-gather","owner":"crust-gather","description":"kubectl debugging plugin to collect full or partial cluster state and serve via an api server. Kubernetes time machine","archived":false,"fork":false,"pushed_at":"2025-10-01T21:45:29.000Z","size":855,"stargazers_count":35,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T23:30:35.415Z","etag":null,"topics":["api-server","asciinema","inspect","kubectl","kubectl-plugin","kubernetes","oc","time-machine"],"latest_commit_sha":null,"homepage":"https://deepwiki.com/crust-gather/crust-gather/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crust-gather.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-03T10:56:04.000Z","updated_at":"2025-10-01T21:45:33.000Z","dependencies_parsed_at":"2024-03-25T14:26:53.262Z","dependency_job_id":"c6b720bb-9725-4e38-a3e2-5aa9a1968854","html_url":"https://github.com/crust-gather/crust-gather","commit_stats":{"total_commits":161,"total_committers":5,"mean_commits":32.2,"dds":0.5031055900621118,"last_synced_commit":"9f4b9a30e7381484d5d375de3b77a2e6caa77d33"},"previous_names":["crust-gather/crust-gather"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/crust-gather/crust-gather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crust-gather%2Fcrust-gather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crust-gather%2Fcrust-gather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crust-gather%2Fcrust-gather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crust-gather%2Fcrust-gather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crust-gather","download_url":"https://codeload.github.com/crust-gather/crust-gather/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crust-gather%2Fcrust-gather/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017050,"owners_count":26085949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":["api-server","asciinema","inspect","kubectl","kubectl-plugin","kubernetes","oc","time-machine"],"created_at":"2024-09-27T21:01:37.339Z","updated_at":"2025-10-13T21:07:47.993Z","avatar_url":"https://github.com/crust-gather.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crust-gather\n\n## Description\n\n`crust-gather` is a `kubectl` plugin that provides functionality, which allows to collect full or partial cluster state and serve it via an api server.\n\n## Some key features:\n\n- Collect all available resources across the cluster.\n- Collect container logs.\n- Collect node kubelet logs.\n- Resource collection is parallel, with exponential backoff retry and configurable timeout.\n- Filter collected resources based on regexes, include/excludes, namespaces, groups or kinds.\n- Advanced filters can be specified by CLI flags, configuration files or fetched from `ConfigMap` via `--config-map`.\n- Collect snapshot from kubeconfig stored in the cluster via `--kubeconfig-secret-name` or `--kubeconfig-secret-label`.\n- Display events in an HTML table with filtering capabilities.\n- Store data in a zip/tar.gz archive.\n- Hide out secret data, by providing environment keys with values to exclude during processing, or a `secrets` file.\n- Browse cluster snapshot with kubectl/k9s, via a local web server.\n- Collect cluster snapshot or multiple cluster snapshots in github actions workflow artifact and serve it via `crust-gather serve` ([Demo](#demo-artifact-serving)).\n\n## Demo\n\n[![asciicast](https://asciinema.org/a/632848.svg)](https://asciinema.org/a/632848)\n\n## Helm charts demo\n\n[![asciicast](https://asciinema.org/a/AfbGJSUUtAItmQVp2EEC6j2vo.svg)](https://asciinema.org/a/AfbGJSUUtAItmQVp2EEC6j2vo)\n\n### Artifact serving\n\nOne of the QoL features `crust-gather` provides is an ability to collect cluster snapshots during CI workflow run and serve the content like a k8s cluster after the originating cluster is removed. It can serve any number of clusters simulaniously, each cluster stored under separate context.\n\nEasy to use version of this provided via `nix` shell script, which includes artifact download and crust-gather installation:\n\n```bash\n# Requires GITHUB_TOKEN to be set\n./serve-artifact.sh --owner rancher-sandbox --repo cluster-api-provider-rke2 --artifact_id 1461387168 \u0026\n# alternatively, if you have an artifact link\n./serve-artifact.sh -u https://github.com/rancher-sandbox/cluster-api-provider-rke2/actions/runs/8923331571/artifacts/1467008322 \u0026\nkubectl get ns\nNAME\ncapd-system\ncapi-system\n...\n```\n\n## Prerequisites\n\nDepending on the installation type, there might be needed:\n\n- kubectl + [krew](https://krew.sigs.k8s.io/docs/user-guide/setup/install/)\n- [nix](https://nixos.org/download/)\n\n## Usage\n\nThe plugin can be installed with `krew` and used as follows:\n\n```bash\nkubectl krew install crust-gather\n\nkubectl crust-gather --help\n```\n\nAlternatively, it can be installed standalone via `install.sh` script:\n```bash\ncurl -sSfL https://github.com/crust-gather/crust-gather/raw/main/install.sh | sh\n\ncrust-gather --help\n```\n\nOr used with `nix`:\n```bash\nnix shell github:crust-gather/crust-gather\n\nkubectl-crust-gather --help\n```\n\n## Testing\n\nTo run tests locally:\n```bash\nmake test\n```\n\nAlternatively you can pass `GOOS` or `GOARCH` directly to the make task:\n```bash\nGOOS=linux GOARCH=amd64 make test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrust-gather%2Fcrust-gather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrust-gather%2Fcrust-gather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrust-gather%2Fcrust-gather/lists"}