{"id":25824365,"url":"https://github.com/ghokun/k8s-device-plugin-demo","last_synced_at":"2026-05-08T04:15:29.122Z","repository":{"id":90242156,"uuid":"466855781","full_name":"ghokun/k8s-device-plugin-demo","owner":"ghokun","description":"Kubernetes device plugin with resource allocation metrics","archived":false,"fork":false,"pushed_at":"2022-03-08T07:41:35.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-28T18:27:41.142Z","etag":null,"topics":["device-plugin","kubernetes"],"latest_commit_sha":null,"homepage":"","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/ghokun.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-06T21:02:30.000Z","updated_at":"2023-11-08T06:19:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"ccbf76cf-ef80-4c13-8dad-4cd41eb6bda4","html_url":"https://github.com/ghokun/k8s-device-plugin-demo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ghokun/k8s-device-plugin-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghokun%2Fk8s-device-plugin-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghokun%2Fk8s-device-plugin-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghokun%2Fk8s-device-plugin-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghokun%2Fk8s-device-plugin-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghokun","download_url":"https://codeload.github.com/ghokun/k8s-device-plugin-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghokun%2Fk8s-device-plugin-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266567528,"owners_count":23949373,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["device-plugin","kubernetes"],"created_at":"2025-02-28T12:50:09.491Z","updated_at":"2026-05-08T04:15:24.100Z","avatar_url":"https://github.com/ghokun.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Demo for Kubernetes Device Plugin\n\n```bash\n# Create a kubernetes instance with kind\nkind create cluster --image kindest/node:v1.20.7\n\n# Build plugin\n./download-deps.sh v1.20.7\ndocker build . -t k8s-device-plugin-demo:0.0.1\n\n# Remove deprecation file (device plugin stub does not register device if this file exists)\ndocker exec -d kind-control-plane rm /var/lib/kubelet/device-plugins/DEPRECATION\n\n# Load image to kind\nkind load docker-image k8s-device-plugin-demo:0.0.1\n\n# Run plugin\nkubectl create -f daemonset.yaml\n\n# Run a consumer pod\nkubectl create -f consumer.yaml\n\n# Check metrics (change pod name accordingly)\nkubectl port-forward pod/k8s-device-plugin-demo-daemonset-pnb86 --address 0.0.0.0 2112:2112\ncurl -s http://localhost:2112/metrics\n\n# Cleanup\nkind delete cluster\ndocker image rm k8s-device-plugin-demo:0.0.1\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghokun%2Fk8s-device-plugin-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghokun%2Fk8s-device-plugin-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghokun%2Fk8s-device-plugin-demo/lists"}