{"id":22691503,"url":"https://github.com/noahingh/completed-pod-cleaner","last_synced_at":"2026-05-03T04:35:36.754Z","repository":{"id":65150737,"uuid":"196728931","full_name":"noahingh/completed-pod-cleaner","owner":"noahingh","description":"The kubernetes controller clean completed pods.","archived":false,"fork":false,"pushed_at":"2019-09-05T17:15:20.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T17:50:57.968Z","etag":null,"topics":["cleaner","kubernetes","kubernetes-operator","pods"],"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/noahingh.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":"2019-07-13T14:10:21.000Z","updated_at":"2022-09-27T12:11:32.000Z","dependencies_parsed_at":"2023-01-02T15:24:00.647Z","dependency_job_id":null,"html_url":"https://github.com/noahingh/completed-pod-cleaner","commit_stats":null,"previous_names":["hanjunlee/completed-pod-cleaner"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fcompleted-pod-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fcompleted-pod-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fcompleted-pod-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahingh%2Fcompleted-pod-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noahingh","download_url":"https://codeload.github.com/noahingh/completed-pod-cleaner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246215820,"owners_count":20741894,"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","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":["cleaner","kubernetes","kubernetes-operator","pods"],"created_at":"2024-12-10T01:11:25.540Z","updated_at":"2026-05-03T04:35:31.733Z","avatar_url":"https://github.com/noahingh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes completed pod cleaner\nThe controller delete the completed pods which matched with patterns.\n\n## Installation\n\n### K8S\n`kubectl apply -f ./deploy/kubernetes.yaml`.\n\n### Local\n```\ngit clone git@github.com:hanjunlee/completed-pod-cleaner.git\ncd ./completed-pod-cleaner\ngo build -o completed-pod-cleaner ./cmd\n```\n\n% Note that you can specify the configuration path of kubernetes with `KUBECONFIG` environment. if you don't set `KUBECONFIG`, it will use `~/.kube/config` as the path.\n\n## Features\n\n- Delete pod with pattern. \u003cbr/\u003e\n**You can specify pods with multiple patterns,** the format is `namespace/name`. For example if you want to delete pods only in the namespace `foo` the pattern should be `foo/*`.\n- TTL (seconds). \u003cbr/\u003e\nIt has TTL, only delete pods which has overed TTL seconds after completed.\n- Delete the job together if the pod is owned by the job. \n- It works in both **in-side** and **out-side** of cluster.\n\n## Command\n```bash\n  -d, -debug\n\t\tDebug mode.\n  -dry-run\n\t\tDry run mode, it does not delete pods.\n  -job\n\t\tDelete the job together if the pod is owned by the job.\n  -p, -pattern\n\t\t(list) Match the pattern with the key of pod, the key is \"namespace/name\",\n\t\tand if matched the worker delete the completed pod. The pattern support wildcard(\"*\").\n  -t, -thread\n\t\tThe count of worker, delete pods and jobs (default 1)\n  -ttl\n\t\tTTL seconds after the pod completed (default 0).\n```\n\n## Example\n\n### Pattern \nSuppose you want to delete completed pods in namespace `foo` and `bar`, you should run `completed-pod-cleaner -p foo/* -p bar/*`.\n\n### Clean owner job\nIf you want to delete pod and also the job own the pod, you should run `completed-pod -p foo/* -job`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahingh%2Fcompleted-pod-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoahingh%2Fcompleted-pod-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahingh%2Fcompleted-pod-cleaner/lists"}