{"id":27329605,"url":"https://github.com/sky-big/csi-hostpath","last_synced_at":"2025-04-12T12:58:53.523Z","repository":{"id":117456149,"uuid":"370639914","full_name":"sky-big/csi-hostpath","owner":"sky-big","description":"csi hostpath","archived":false,"fork":false,"pushed_at":"2021-05-26T03:40:36.000Z","size":62577,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T17:51:25.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/sky-big.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":"2021-05-25T09:39:10.000Z","updated_at":"2022-05-18T08:23:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ea3a178-d4f1-45b8-ab78-8b5950572ea5","html_url":"https://github.com/sky-big/csi-hostpath","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/sky-big%2Fcsi-hostpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-big%2Fcsi-hostpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-big%2Fcsi-hostpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-big%2Fcsi-hostpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sky-big","download_url":"https://codeload.github.com/sky-big/csi-hostpath/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571918,"owners_count":21126521,"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":"2025-04-12T12:58:52.720Z","updated_at":"2025-04-12T12:58:53.474Z","avatar_url":"https://github.com/sky-big.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes HostPath CSI Plugin\n\n## Overview\n\nHostPath CSI plugin implement an interface between CSI enabled Container Orchestrator, This is exactly the same as the native HostPath plugin.\nThis project purpose is to learn how to write CSI plugin.\n\n## Quick Start\n\n### Deploy Plugin\n\n1. Clone the project on your Kubernetes cluster master node:\n```\n$ git clone https://github.com/sky-big/csi-hostpath.git\n$ cd csi-hostpath\n```\n\n2. To deploy the Plugin on your Kubernetes cluster, need ` Helm `:\n```\n$ helm install csi-hostpath ./deploy\n```\n\n3. Use command ```kubectl get pods -n kube-system```to check Plugin status like:\n```\nNAMESPACE                    NAME                                                     READY   STATUS             RESTARTS   AGE\nkube-system                  hostpath-csi-controller-0                                1/1     Running            0          11m\nkube-system                  hostpath-csi-node-97hzx                                  2/2     Running            0          11m\nkube-system                  hostpath-csi-node-hdv6n                                  2/2     Running            0          11m\nkube-system                  hostpath-csi-node-z4qc4                                  2/2     Running            0          11m\n```\n\n### Start Example\n\n1. PVC setup host path, like this:\n```\napiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:\n  name: csi-hostpath-pvc\n  annotations:\n    # setup host path\n    csi-hostpath-path: /var/log\nspec:\n  accessModes:\n    - ReadWriteOnce\n  resources:\n    requests:\n      storage: 1Gi\n  storageClassName: csi-hostpath\n```\n\n2. Run example\n```\n# install storageclass\n$ kubectl apply -f ./examples/storageclass.yaml\n\n# install pvc\n$ kubectl apply -f ./examples/pvc.yaml\n\n# install pod\n$ kubectl apply -f ./examples/nginx.yaml\n```\n\n### Undeploy\n\n1. undeploy\n```\n$ helm uninstall csi-hostpath\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-big%2Fcsi-hostpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsky-big%2Fcsi-hostpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-big%2Fcsi-hostpath/lists"}