{"id":22944473,"url":"https://github.com/tyriis/i-see-dead-pods","last_synced_at":"2025-08-12T22:32:06.274Z","repository":{"id":151585636,"uuid":"615043509","full_name":"tyriis/i-see-dead-pods","owner":"tyriis","description":"Get rid of `Pod was terminated in response to imminent node shutdown.` Pods forever.","archived":false,"fork":false,"pushed_at":"2024-05-23T08:07:52.000Z","size":15,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-23T09:27:24.563Z","etag":null,"topics":["devops","gitops","gke","helmrelease","kubernetes","manifests"],"latest_commit_sha":null,"homepage":"https://github.com/tyriis/i-see-dead-pods","language":"Nix","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/tyriis.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}},"created_at":"2023-03-16T20:49:33.000Z","updated_at":"2024-05-23T09:27:25.783Z","dependencies_parsed_at":"2023-06-01T01:15:37.681Z","dependency_job_id":null,"html_url":"https://github.com/tyriis/i-see-dead-pods","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyriis%2Fi-see-dead-pods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyriis%2Fi-see-dead-pods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyriis%2Fi-see-dead-pods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyriis%2Fi-see-dead-pods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyriis","download_url":"https://codeload.github.com/tyriis/i-see-dead-pods/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229711412,"owners_count":18112127,"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":["devops","gitops","gke","helmrelease","kubernetes","manifests"],"created_at":"2024-12-14T14:18:48.865Z","updated_at":"2024-12-14T14:18:49.267Z","avatar_url":"https://github.com/tyriis.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable MD041 --\u003e\n\u003c!-- markdownlint-disable MD033 --\u003e\n\u003c!-- markdownlint-disable MD051 --\u003e\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n\n[![taskfile][taskfile-shield]][taskfile-url]\n[![pre-commit][pre-commit-shield]][pre-commit-url]\n\n# I see dead Pods\n\nGet rid of `Pod was terminated in response to imminent node shutdown.` Pods forever.\n\n\u003cdetails\u003e\n  \u003csummary style=\"font-size:1.2em;\"\u003eTable of Contents\u003c/summary\u003e\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Story](#story)\n- [Setup](#setup)\n  - [kubectl](#kubectl)\n  - [kustomize](#kustomize)\n  - [flux helmrelease](#flux-helmrelease)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c/details\u003e\n\n## Story\n\nIn Kubernetes, pods can remain in a broken state for a long time if graceful shutdown is enabled. This state results in an alert getting fired by kube-prometheus-stack.\n\n```console\n[FIRING:1] Pod has been in a non-ready state for more than 15 minutes.\nSeverity:  warning\nDescription: Pod default/some-container-7fb4c4fbc5-gbjwm has been in a non-ready state for longer than 15 minutes.\nDetails:\n  • alertname: KubePodNotReady \\\n  • namespace: default \\\n  • pod: some-container-7fb4c4fbc5-gbjwm \\\n  • prometheus: observability/kube-prometheus-stack-prometheus \\\n  • severity: warning\n```\n\nMost of the `solutions` on the internet describe an uncontrolled deletion of all Pods in `Error` or `Terminated` state.\nWich I consider as a bad idea, because you will not see anymore if real `Error` Pods are in your system.\n\nThese manifests provide a kubernetes `CronJob` deleting constantly all Pods with given criterias.\n\n## Setup\n\n### kubectl\n\nYou can apply the manifests manually:\n\n```console\nkubectl apply -f https://raw.githubusercontent.com/tyriis/i-see-dead-pods/main/manifests/service-account.yaml\nkubectl apply -f https://raw.githubusercontent.com/tyriis/i-see-dead-pods/main/manifests/rbac.yaml\nkubectl apply -f https://raw.githubusercontent.com/tyriis/i-see-dead-pods/main/manifests/cronjob.yaml\n```\n\n### kustomize\n\nor with kustomize\n\n### flux helmrelease\n\nor with flux, see [helmrelease](./manifests/flux-helmrelease.yaml).\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n\n\u003c!-- Links --\u003e\n\n\u003c!-- Badges --\u003e\n\n[taskfile-shield]: https://img.shields.io/badge/Taskfile-enabled-brightgreen?logo=task\n[taskfile-url]: https://taskfile.dev/\n[pre-commit-shield]: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\n[pre-commit-url]: https://github.com/pre-commit/pre-commit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyriis%2Fi-see-dead-pods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyriis%2Fi-see-dead-pods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyriis%2Fi-see-dead-pods/lists"}