{"id":50292075,"url":"https://github.com/kube-land/hostpath-provisioner","last_synced_at":"2026-05-28T06:15:45.957Z","repository":{"id":129306752,"uuid":"179046414","full_name":"kube-land/hostpath-provisioner","owner":"kube-land","description":"Provision hostPath persistent volumes controller.","archived":false,"fork":false,"pushed_at":"2023-03-06T23:50:28.000Z","size":12097,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T18:53:10.232Z","etag":null,"topics":["hostpath-provisioner","kubernetes","volume"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kube-land.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-04-02T09:41:57.000Z","updated_at":"2021-06-01T03:02:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbcc5c92-3baa-49bd-aa38-ec570ba1c96b","html_url":"https://github.com/kube-land/hostpath-provisioner","commit_stats":null,"previous_names":["appspero/hostpath-provisioner"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kube-land/hostpath-provisioner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kube-land%2Fhostpath-provisioner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kube-land%2Fhostpath-provisioner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kube-land%2Fhostpath-provisioner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kube-land%2Fhostpath-provisioner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kube-land","download_url":"https://codeload.github.com/kube-land/hostpath-provisioner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kube-land%2Fhostpath-provisioner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33596533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":["hostpath-provisioner","kubernetes","volume"],"created_at":"2026-05-28T06:15:43.766Z","updated_at":"2026-05-28T06:15:45.951Z","avatar_url":"https://github.com/kube-land.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hostpath-provisioner\n\nThe `hostpath-provisioner` will provision HostPath Persistent Volumes using Persistent Volumes Claims. It support setting size using storage requests. It uses disk project quota for both XFS and EXT4.\n\n## Install\n\nTo install `hostpath-provisioner` controller:\n\n```bash\nkubectl apply -k install/\n```\n\nor by reference in your overlay as:\n\n```yaml\n# kustomization.yaml\nbases:\n  - github.com/appspero/hostpath-provisioner//install?ref=master\n```\n\nThe previous command will install the controller and it RBAC.\n\n### Enabling quota on non-root partition\n\nTo enable quota on the non-root partition edit the configuration file `/etc/fstab`. For example:\n\n```\n# /etc/fstab\n\n/dev/mapper/centos-disk /mnt/disk               xfs     defaults,pquota        0 0\n```\n\nTo check current quota:\n\n```bash\nxfs_quota -xc 'report -h' /mnt/disk\n```\n\n### Enabling quota on the `/` (root) partition\n\nTo enable quota on the `/` (root) partition edit the grub configuration file `/etc/default/grub`. Search for the line that starts with `GRUB_CMDLINE_LINUX` and add `rootflags=uquota,gquota` to the command line parameters. Then\n\n```bash\ncp /boot/grub2/grub.cfg /boot/grub2/grub.cfg_bak\ngrub2-mkconfig -o /boot/grub2/grub.cfg\nreboot\n```\n\n## Configuration\n\nYou can configure the host directory where the `hostpath-provisioner` will create the persistent volumes using the flag:\n\n```\n-pv-directory=/path/to/directory\n```\n\nThen create a storage class with `provisioner: appspero.com/hostpath` (check examples).\n\n\n**Warning:** The default value of `-pv-directory` is `/tmp/hostpath-provisioner`. Using `/tmp/...` directory could be risky for persisting volume; it will be auto-cleaned by the OS.\n\n## Build\n\nTo build `hostpath-provisioner`:\n\n```bash\ndocker build -t abdullahalmariah/hostpath-provisioner:latest .\ndocker push abdullahalmariah/hostpath-provisioner:latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkube-land%2Fhostpath-provisioner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkube-land%2Fhostpath-provisioner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkube-land%2Fhostpath-provisioner/lists"}