{"id":19209415,"url":"https://github.com/devtron-labs/spot-usage-for-kubernetes","last_synced_at":"2026-03-19T08:42:15.558Z","repository":{"id":103095884,"uuid":"279223302","full_name":"devtron-labs/spot-usage-for-kubernetes","owner":"devtron-labs","description":"how to use spot for kubernetes","archived":false,"fork":false,"pushed_at":"2020-07-13T06:03:15.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T16:30:56.763Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/devtron-labs.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":"2020-07-13T05:52:54.000Z","updated_at":"2023-02-13T13:51:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b2ff854-9b63-47a5-952f-e4bbc7175b12","html_url":"https://github.com/devtron-labs/spot-usage-for-kubernetes","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/devtron-labs%2Fspot-usage-for-kubernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtron-labs%2Fspot-usage-for-kubernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtron-labs%2Fspot-usage-for-kubernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtron-labs%2Fspot-usage-for-kubernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devtron-labs","download_url":"https://codeload.github.com/devtron-labs/spot-usage-for-kubernetes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240281361,"owners_count":19776497,"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":[],"created_at":"2024-11-09T13:30:55.431Z","updated_at":"2025-10-23T16:38:39.100Z","avatar_url":"https://github.com/devtron-labs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# spot-usage-for-kubernetes\n\nHow to balance cost and stability with spot in kubernetes.\n\nThis repository is created to provide sample implementation of ideas espoused in blog - [How to use Spot to achieve Cost Savings with Stability on Kubernetes](https://devtron.ai/blog/how-to-use-spot-to-achieve-cost-savings-on-kubernetes/)\n\nThis repository has three directories - **attempt_1**, **attempt_2**, **attempt_3**\n\n- **attempt_1** : This is a **failed approach** in which we have ensured that node are in the required spot to on-demand ratio and assume that pod will distribute in the same ratio.\n\n- **attempt_2** : This again is a **failed approach** which uses preferred node affinity to distribute the pods.\n\n- **attempt_3** : This is final and **successful attempt** in this we have used concept introduced in kubernetes version 1.16 and made beta in 1.18. Pod Topology Spread Constraint to distribute pod between spot and on-demand instances in desired ratio.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevtron-labs%2Fspot-usage-for-kubernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevtron-labs%2Fspot-usage-for-kubernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevtron-labs%2Fspot-usage-for-kubernetes/lists"}