{"id":20359403,"url":"https://github.com/saidsef/k8s-spot-termination-notice","last_synced_at":"2026-02-25T02:12:01.861Z","repository":{"id":46652774,"uuid":"162835104","full_name":"saidsef/k8s-spot-termination-notice","owner":"saidsef","description":"Kubernetes Spot Instance Termination Notifier: Sends Slack alerts when AWS spot instances receive termination notices. Lightweight, container-ready Python app","archived":false,"fork":false,"pushed_at":"2025-11-30T18:39:18.000Z","size":225,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-03T02:54:48.398Z","etag":null,"topics":["aws","aws-spot-instance","cloud-infrastructure","devops","kubernetes","python","slack","spot","spot-instance-notification","spot-instances"],"latest_commit_sha":null,"homepage":"","language":"Python","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/saidsef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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},"funding":{"custom":["https://revolut.me/saidsef"]}},"created_at":"2018-12-22T18:45:09.000Z","updated_at":"2025-11-30T18:37:54.000Z","dependencies_parsed_at":"2023-02-10T10:00:29.630Z","dependency_job_id":"7b9f333a-1933-4299-8733-7f45ade00149","html_url":"https://github.com/saidsef/k8s-spot-termination-notice","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/saidsef/k8s-spot-termination-notice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saidsef%2Fk8s-spot-termination-notice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saidsef%2Fk8s-spot-termination-notice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saidsef%2Fk8s-spot-termination-notice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saidsef%2Fk8s-spot-termination-notice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saidsef","download_url":"https://codeload.github.com/saidsef/k8s-spot-termination-notice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saidsef%2Fk8s-spot-termination-notice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29809079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T22:43:48.403Z","status":"online","status_checked_at":"2026-02-25T02:00:07.329Z","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":["aws","aws-spot-instance","cloud-infrastructure","devops","kubernetes","python","slack","spot","spot-instance-notification","spot-instances"],"created_at":"2024-11-14T23:33:46.412Z","updated_at":"2026-02-25T02:12:01.846Z","avatar_url":"https://github.com/saidsef.png","language":"Python","funding_links":["https://revolut.me/saidsef"],"categories":[],"sub_categories":[],"readme":"# Kubernetes Spot Instance Notification [![CI](https://github.com/saidsef/k8s-spot-termination-notice/actions/workflows/docker.yml/badge.svg)](#prerequisites) [![Tagging](https://github.com/saidsef/k8s-spot-termination-notice/actions/workflows/tagging.yml/badge.svg)](#prerequisites) [![Release](https://github.com/saidsef/k8s-spot-termination-notice/actions/workflows/release.yml/badge.svg)](#prerequisites) [![Maintainability](https://api.codeclimate.com/v1/badges/6e8a177eb52d300d1111/maintainability)](https://codeclimate.com/github/saidsef/k8s-spot-termination-notice/maintainability)\n\nThis service will run as DaemonSet within your K8s cluster running on AWS Spot Instance, it watches the AWS metadata service when running on Spot Instances.\n\nAWS Spot instance receives termination notice via the [instance meta data](https://aws.amazon.com/blogs/aws/new-ec2-spot-instance-termination-notices/), that field will become available when the instance has been marked for termination, and will contain the time when a shutdown signal will be sent to the instance’s operating system.\n\nThis service will notify you via Slack that an Spot instance will be taken out of service.\n\n## Prerequisites\n\n- Kubernetes Cluster (running in AWS)\n- Slack API Token\n- Slack Channel\n\n\u003e Add Slack `SLACK_API_TOKEN` and `SLACK_CHANNEL` in `secret.yml`\n\n## Environmental Variables\n\n- CHANNEL (otherwise it will be to `default`)\n- SLACK_API_TOKEN\n- SLACK_CHANNEL\n\n## Deployment\n\nTo deoloy this in your cluster:\n\n\u003e Update `kustomization.yml` to deploy in a different `namespace`\n\n\u003e otherwise this will be deployed to `default` namespace\n\n```shell\nkubectl apply -k deployment/\n```\n\n## Source\n\nOur latest and greatest source of Jenkins can be found on [GitHub](#deployment). Fork us!\n\n## Contributing\n\nWe would :heart:  you to contribute by making a [pull request](https://github.com/saidsef/k8s-spot-termination-notice/pulls).\n\nPlease read the official [Contribution Guide](./CONTRIBUTING.md) for more information on how you can contribute.\n\n## TODO\n\n\u003e [!NOTICE] Drain Node.\n\u003e This is in-progress.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaidsef%2Fk8s-spot-termination-notice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaidsef%2Fk8s-spot-termination-notice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaidsef%2Fk8s-spot-termination-notice/lists"}