{"id":17676946,"url":"https://github.com/tuladhar/k8s-logrotate","last_synced_at":"2025-03-30T17:28:15.269Z","repository":{"id":46666776,"uuid":"369574046","full_name":"tuladhar/k8s-logrotate","owner":"tuladhar","description":"Ansible playbook to setup logrotate for on-prem Kubernetes master/worker nodes.","archived":false,"fork":false,"pushed_at":"2022-03-04T08:37:50.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-05T19:42:11.980Z","etag":null,"topics":["ansible","devops","hacktoberfest","hacktoberfest-accepted","playbook"],"latest_commit_sha":null,"homepage":"","language":null,"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/tuladhar.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}},"created_at":"2021-05-21T15:12:40.000Z","updated_at":"2024-08-09T12:20:22.000Z","dependencies_parsed_at":"2022-09-21T18:52:30.973Z","dependency_job_id":null,"html_url":"https://github.com/tuladhar/k8s-logrotate","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/tuladhar%2Fk8s-logrotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuladhar%2Fk8s-logrotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuladhar%2Fk8s-logrotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuladhar%2Fk8s-logrotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuladhar","download_url":"https://codeload.github.com/tuladhar/k8s-logrotate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246353772,"owners_count":20763717,"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":["ansible","devops","hacktoberfest","hacktoberfest-accepted","playbook"],"created_at":"2024-10-24T07:27:13.533Z","updated_at":"2025-03-30T17:28:15.245Z","avatar_url":"https://github.com/tuladhar.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# k8s-logrotate\nAn ansible playbook to setup periodic logrotate for your on-prem Kubernetes master/worker nodes to cleanup the container and pods logs to free up the disk space.\n\n## Quickstart\n\n### Step 1. Create hosts inventory with your K8s nodes\n\n*File: hosts.ini*\n```\n[k8s-nodes]\nk8s-worker-1 10.0.0.1\nk8s-worker-2 10.0.0.2\nk8s-worker-2 10.0.1.3\n```\n\n### Step 2. Run the ansible playbook\n```\n$ ansible-playbook -i hosts.ini k8s-logrotate.yaml\n```\n\n### Step 3. Verify the logrotate files\n```\n$ cd /etc/logrotate.d\n$ ls -lh\n-rw-r--r--  1 root root  192 May 21 14:51 allcontainerlogs\n-rw-r--r--  1 root root  186 May 21 14:51 allpodlogs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuladhar%2Fk8s-logrotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuladhar%2Fk8s-logrotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuladhar%2Fk8s-logrotate/lists"}