{"id":14384287,"url":"https://github.com/AxaFrance/dailyclean","last_synced_at":"2025-08-23T17:31:23.390Z","repository":{"id":40261764,"uuid":"434246460","full_name":"AxaFrance/dailyclean","owner":"AxaFrance","description":"Save The planet by auto turn off your pods on kubernetes","archived":false,"fork":false,"pushed_at":"2024-12-10T15:13:11.000Z","size":8618,"stargazers_count":96,"open_issues_count":18,"forks_count":8,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-12-10T16:26:43.429Z","etag":null,"topics":["axa","container","finops","green","java","kubernetes","openshift","project","scale"],"latest_commit_sha":null,"homepage":"","language":"Java","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/AxaFrance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-12-02T14:12:09.000Z","updated_at":"2024-12-09T10:46:36.000Z","dependencies_parsed_at":"2024-12-10T16:34:00.747Z","dependency_job_id":null,"html_url":"https://github.com/AxaFrance/dailyclean","commit_stats":null,"previous_names":[],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxaFrance%2Fdailyclean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxaFrance%2Fdailyclean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxaFrance%2Fdailyclean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxaFrance%2Fdailyclean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AxaFrance","download_url":"https://codeload.github.com/AxaFrance/dailyclean/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230716456,"owners_count":18269762,"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":["axa","container","finops","green","java","kubernetes","openshift","project","scale"],"created_at":"2024-08-28T18:01:16.841Z","updated_at":"2025-08-23T17:31:23.382Z","avatar_url":"https://github.com/AxaFrance.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# DailyClean\n![workflow](https://github.com/AxaGuilDEv/dailyclean/actions/workflows/dailyclean-docker-images.yml/badge.svg) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=AxaGuilDEv_dailyclean\u0026metric=code_smells)](https://sonarcloud.io/summary/new_code?id=AxaGuilDEv_dailyclean) [![Docker API](https://img.shields.io/docker/pulls/axaguildev/dailyclean-api.svg)](https://hub.docker.com/r/axaguildev/dailyclean-api/builds) [![Docker JOB](https://img.shields.io/docker/pulls/axaguildev/dailyclean-job.svg)](https://hub.docker.com/r/axaguildev/dailyclean-job/builds)\n\n![DailyClean](./dailyclean.gif \"DailyClean\")\n\n- [About](#about)\n- [Getting Started](#getting-started)\n- [How Does It Work](#how-does-it-work)\n- [Configure your DailyClean](#configure-your-dailyclean)\n- [Contribute](#contribute)\n- [Authors](#authors)\n\n## About\n\nDaily clean is all you to turn on or off automatically or manually all your pods your kubernetes namespace.\nSave the planet with DailyClean.\nDaily clean only use kubernetes native API.\n\n![DailyClean Automation](./dailyclean-configuration.png \"DailyClean Automation\")\n\n## Getting Started\n\nTo test dailyclean on your local machine by using kubernetes with Docker Desktop, please use these commands:\n\n```bash\ngit clone https://github.com/AxaGuilDEv/dailyclean.git\ncd dailyclean/demo\nkubectl create namespace license-preproduction\nkubectl config set-context --current --namespace=license-preproduction\n# Create a custom service account\nkubectl apply -f dailyclean-serviceaccount.yml\n# Install dailyclean for the dailyclean service account\nkubectl apply -f deployment-dailyclean.yml\n# Install three instances of kubernetes-bootcamp\nkubectl apply -f deployment-others.yml\n# Install MySql\nkubectl apply -f deployment-mysql.yml\n```\n\nNow, open your favorite browser and enter the url of dailyclean-api service : http://localhost:30001\n\nEnjoy dailyclean !!!!\n\n## How Does It Work\n\n- Daily clean use native kubernetes API, it works with any kubernetes projects. \nDailyClean is a pod that have to be install in your namespace. \nIt create cron job that start or stop your pods. \n- API is in native GraalVM so it is lightweight.\n- User interface is in React/Javascript.\n\nyou can use specific labels to configure DailyClean in your Kubernetes scripts:\n\n```yaml\nmetadata:\n  name: my-api\n  labels:\n    # if false, dailyclean will not stop this pod for deployment\n    axa.com/dailyclean: 'false' \n    # WARNING: default value is true for DEPLOYMENT and false for STATEFULTSET\n```\n\n```yaml\nmetadata:\n  name: fibonacci1\n  labels:\n    # if true, dailyclean web UI will consider this pod as a function\n    axa.com/function: 'true' \n```\n\n## Configure your DailyClean\n\n| Environment Variable                   | Description                                                                                                                                        | Default value |\n|----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|---------------|\n| `SERVICE_UNAUTHORIZED_NAMESPACE_REGEX` | If needed, it is possible to specify a regex matching the Kubernetes namespaces on which the automatic start or stop actions should not be applied |               |\n\n## Contribute\n\n- [How to run the solution and to contribute](./CONTRIBUTING.md)\n- [Please respect our code of conduct](./CODE_OF_CONDUCT.md)\n\n## Authors\n\nThe awesome team :\n\n- __[Thomas Lemarchand](https://github.com/tlemarchand)__ : Conception, Architecture, Dailyclean job developer\n- __[Pierre-Henri Gache](https://github.com/phgache)__ : Architecture, CI/CD Pipelines\n- __[Guillaume Thomas](https://github.com/guillaume-thomas)__ : API developer\n- __[Guillaume Chervet](https://github.com/guillaume-chervet)__: Frontend developer, CI/CD Pipelines\n- Charles Herriau: Developer of the statefulset management feature\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAxaFrance%2Fdailyclean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAxaFrance%2Fdailyclean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAxaFrance%2Fdailyclean/lists"}