{"id":27902743,"url":"https://github.com/archsyscall/restart-operator","last_synced_at":"2026-04-30T10:06:46.999Z","repository":{"id":291577082,"uuid":"978050844","full_name":"archsyscall/restart-operator","owner":"archsyscall","description":"A Kubernetes operator for scheduling recurring restarts of workloads running in a Kubernetes cluster","archived":false,"fork":false,"pushed_at":"2025-05-05T12:43:38.000Z","size":31,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T21:40:44.588Z","etag":null,"topics":["kubernetes","operator","restart-operator"],"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/archsyscall.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,"zenodo":null}},"created_at":"2025-05-05T11:52:36.000Z","updated_at":"2025-05-05T20:01:59.000Z","dependencies_parsed_at":"2025-05-05T13:39:17.265Z","dependency_job_id":null,"html_url":"https://github.com/archsyscall/restart-operator","commit_stats":null,"previous_names":["archsyscall/restart-operator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/archsyscall/restart-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archsyscall%2Frestart-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archsyscall%2Frestart-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archsyscall%2Frestart-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archsyscall%2Frestart-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archsyscall","download_url":"https://codeload.github.com/archsyscall/restart-operator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archsyscall%2Frestart-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["kubernetes","operator","restart-operator"],"created_at":"2025-05-05T21:37:38.674Z","updated_at":"2026-04-30T10:06:46.994Z","avatar_url":"https://github.com/archsyscall.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# restart-operator\n\nA Kubernetes operator for scheduling recurring restarts of workloads running in a Kubernetes cluster.\n\n## Overview\n\nThe Restart Operator allows you to define cron-based schedules for automatically restarting Kubernetes workloads. It's perfect for applications that require periodic restarts to clear memory, refresh connections, or apply configuration changes without requiring manual intervention.\n\n## Features\n\n- **Cron-based scheduling**: Use standard cron expressions to define restart schedules\n- **Multiple workload support**: Works with Deployments, StatefulSets, and DaemonSets\n- **Namespace scoping**: Target resources in the same or different namespaces\n- **Status tracking**: Keep track of the last successful restart and the next scheduled restart\n- **Cross-platform**: Works on both ARM64 and AMD64 architectures\n\n## Installation\n\n```bash\nhelm repo add archsyscall https://archsyscall.github.io/restart-operator\nhelm repo update\nhelm install restart-operator archsyscall/restart-operator\n```\n\n## Usage\n\n1. Create a `RestartSchedule` resource in your cluster:\n\n```yaml\napiVersion: restart-operator.k8s/v1alpha1\nkind: RestartSchedule\nmetadata:\n  name: nightly-app-restart\n  namespace: default\nspec:\n  schedule: \"0 3 * * *\"\n  targetRef:\n    kind: Deployment\n    name: my-application\n```\n\n2. Check the status of your restart schedule:\n\n```bash\nkubectl get restartschedule\n```\n\nExample output:\n```\nNAME                 TARGET-KIND   TARGET-NAME        SCHEDULE    LAST-RESTART           AGE\nnightly-app-restart   Deployment    my-application     0 3 * * *   2025-05-03T03:00:00Z   2d\n```\n\n## How It Works\n\nThe operator:\n\n1. Watches for `RestartSchedule` resources\n2. Validates the cron schedule and target resource\n3. Creates a scheduled job using the cron expression\n4. When the schedule triggers, adds a restart annotation to the target resource's pod template\n5. Kubernetes sees the template change and initiates a rolling update\n6. Updates the status with the last restart time and next scheduled restart\n\nThe restart is performed by adding/updating an annotation (`restart-operator.k8s/restartedAt`) on the pod template spec, which triggers Kubernetes to perform a rolling restart of the workload without modifying any other configuration.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchsyscall%2Frestart-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchsyscall%2Frestart-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchsyscall%2Frestart-operator/lists"}