{"id":37154951,"url":"https://github.com/xyctruth/kubectl-replicas","last_synced_at":"2026-01-14T18:19:21.716Z","repository":{"id":57662457,"uuid":"478468380","full_name":"xyctruth/kubectl-replicas","owner":"xyctruth","description":"This CLI stash replicas of deployment, save some resources.","archived":false,"fork":false,"pushed_at":"2022-04-07T01:43:39.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T03:46:22.374Z","etag":null,"topics":["go","kubectl-plugin","kubectl-plugins"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyctruth.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}},"created_at":"2022-04-06T08:23:15.000Z","updated_at":"2022-07-14T06:11:27.000Z","dependencies_parsed_at":"2022-09-12T23:22:38.636Z","dependency_job_id":null,"html_url":"https://github.com/xyctruth/kubectl-replicas","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xyctruth/kubectl-replicas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyctruth%2Fkubectl-replicas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyctruth%2Fkubectl-replicas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyctruth%2Fkubectl-replicas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyctruth%2Fkubectl-replicas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyctruth","download_url":"https://codeload.github.com/xyctruth/kubectl-replicas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyctruth%2Fkubectl-replicas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28430335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","kubectl-plugin","kubectl-plugins"],"created_at":"2026-01-14T18:19:21.031Z","updated_at":"2026-01-14T18:19:21.698Z","avatar_url":"https://github.com/xyctruth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-replicas\n\nThis plugin stash replicas of deployment, save some resources.\n\n## Usage\n\n### Stash replicas of deployment\n\nSet the deployment's `Spec.Replicas` to 0, and backup the `Spec.Replicas` to the deployment's Annotations.\n\n```bash\n$ kubectl-replicas stash -n test # or (kubectl replicas stash -n test)\n\"app1\" stash replicas succeed\n\"app2\" stash replicas succeed\n\"app3\" stash replicas succeed\n```\n\n```\n$ kubectl get deployments -n test\nNAME       READY   STATUS    RESTARTS       AGE\napp1       0/1     1            0           141d\napp2       0/2     1            0           141d\napp3       0/3     1            0           141d\n```\n\n### Recover replicas of deployment\n\nRecover deployment's `Spec.Replicas`\n\n```bash\n$ kubectl-replicas recover -n test # or (kubectl replicas stash -n test)\n\"app1\" recover replicas 1 succeed\n\"app2\" recover replicas 2 succeed\n\"app3\" recover replicas 3 succeed\n```\n\n```bash\n$ kubectl get deployments -n test\nNAME       READY   STATUS    RESTARTS       AGE\napp1       1/1     1            0           141d\napp2       2/2     1            0           141d\napp3       3/3     1            0           141d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyctruth%2Fkubectl-replicas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyctruth%2Fkubectl-replicas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyctruth%2Fkubectl-replicas/lists"}